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

:root {
  --accent: #7a1219;
  --red-950: #2c0507;
  --red-900: #420a0d;
  --red-800: #5c0d12;
  --red-600: #9b1c24;
  --gold: #c9a24c;
  --gold-light: #ecd497;
  --gold-deep: #8a6a24;
  --gold-grad: linear-gradient(135deg, #f3dea0 0%, #d4ad55 45%, #b68a34 70%, #e7c878 100%);
  --ink: #2a1810;
  --muted: #6e5a4a;
  --paper: #fbf6ec;
  --paper-2: #f3eadb;
  --card: #fffdf8;
  --line: #e4d4b4;
  --radius: 6px;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(60px, 9vw, 112px);
  --pad: 16px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --pad: 32px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
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%; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.35; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec-alt { background: var(--paper-2); }

/* หัวข้อของส่วน: เส้นทองมีเพชรตรงกลาง เป็นลายเซ็นที่ใช้ซ้ำทั้งเว็บ */
.rule {
  display: block; position: relative; width: 88px; height: 12px; margin: 0 auto 14px;
}
.rule::before {
  content: ''; position: absolute; inset: 5px 0 auto; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.rule::after {
  content: ''; position: absolute; left: 50%; top: 2px; width: 8px; height: 8px;
  background: var(--gold); transform: translateX(-50%) rotate(45deg);
  box-shadow: 0 0 0 3px var(--paper);
}
.sec-alt .rule::after { box-shadow: 0 0 0 3px var(--paper-2); }
.sec-dark .rule::after { box-shadow: 0 0 0 3px var(--red-900); }

.sec-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4.2vw, 44px); color: var(--red-800); }
.sec-head p { color: var(--muted); margin: 12px 0 0; font-size: 17px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 26px; border-radius: 4px; font-size: 17px; font-weight: 600; line-height: 1.3;
  background: var(--accent); color: #fff; text-decoration: none; letter-spacing: .01em;
  border: 1.5px solid transparent; min-height: 50px; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn-gold {
  background: var(--gold-grad); color: var(--red-950);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 18px -8px rgba(201, 162, 76, .8);
}
.btn-gold:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px -8px rgba(201, 162, 76, .9); }
.btn-red { background: var(--accent); color: #fff; }
.btn-red:hover { background: var(--red-600); }
.btn-ghost { background: transparent; color: var(--red-800); border-color: var(--gold); }
.btn-line { background: #06c755; color: #fff; }

/* ---------- แถบบนสุด ---------- */
.topbar { background: var(--red-950); color: #e8d9c2; font-size: 14px; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; min-height: 38px; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 16px; height: 16px; color: var(--gold); }
.tb-social { margin-left: auto; gap: 4px !important; }
.tb-social a { display: inline-flex; padding: 6px; color: var(--gold-light); }
.tb-addr { min-width: 0; }
@media (max-width: 767px) {
  .tb-addr, .tb-social { display: none !important; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- หัวเว็บ ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, var(--red-800), var(--red-900));
  border-bottom: 1px solid rgba(201, 162, 76, .45);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; margin-right: auto; }
.logo img { width: 52px; height: 52px; border-radius: 50%; }
.logo > span { display: grid; color: var(--gold-light); font-weight: 700; font-size: 19px; line-height: 1.3; }
.logo small { color: #e2cfb6; font-weight: 400; font-size: 14px; }
.menu-desk { display: none; gap: 4px; }
.menu-desk a, .menu a {
  color: #f3e6d2; text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px;
  position: relative;
}
.menu-desk a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease);
}
.menu-desk a:hover::after, .menu-desk a[aria-current="page"]::after { transform: scaleX(1); }
.menu-desk a[aria-current="page"] { color: var(--gold-light); }
.nav-call { display: none; min-height: 44px; padding: 8px 18px; font-size: 16px; }

.menu-mob summary {
  list-style: none; width: 46px; height: 46px; display: grid; place-content: center; gap: 5px;
  cursor: pointer; border: 1px solid rgba(201, 162, 76, .5); border-radius: 4px;
}
.menu-mob summary::-webkit-details-marker { display: none; }
.menu-mob summary span { display: block; width: 20px; height: 1.5px; background: var(--gold-light); transition: transform .2s; }
.menu-mob[open] summary span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-mob[open] summary span:nth-child(2) { opacity: 0; }
.menu-mob[open] summary span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--red-900);
  border-bottom: 1px solid rgba(201, 162, 76, .45); display: grid; padding: 8px var(--pad) 16px;
}
.menu a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.menu a[aria-current="page"] { color: var(--gold-light); }
@media (max-width: 420px) {
  .logo small { display: none; }
  .logo > span { font-size: 17px; }
  .logo img { width: 46px; height: 46px; }
}
@media (min-width: 1024px) {
  .menu-desk { display: flex; }
  .menu-mob { display: none; }
  .nav-call { display: inline-flex; }
  .logo small { font-size: 14px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; }
.hero h1, .hero .h1 {
  font-size: clamp(32px, 5.4vw, 60px); line-height: 1.25; color: var(--gold-light); margin: 0;
}
@supports (-webkit-background-clip: text) {
  .hero h1, .hero .h1 { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero-sub { color: #f1e4d0; font-size: clamp(17px, 1.6vw, 19px); margin: 18px 0 0; max-width: 54ch; }
.hero-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* split: พื้นกำมะหยี่แดง ข้อความซ้าย แบนเนอร์ของร้านขวา (แสดงเต็มสัดส่วน ไม่ครอป) */
.hero-split {
  background:
    radial-gradient(ellipse 70% 90% at 85% 40%, rgba(201, 162, 76, .16), transparent 60%),
    radial-gradient(ellipse 90% 120% at 10% 0%, #8e1820 0%, var(--red-800) 45%, var(--red-950) 100%);
}
.hero-split::before {
  content: ''; position: absolute; width: 720px; height: 720px; right: -260px; top: -280px;
  border: 1px solid rgba(201, 162, 76, .22); border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 40px rgba(201, 162, 76, .04), 0 0 0 41px rgba(201, 162, 76, .14);
}
.hero-grid {
  display: grid; gap: 32px; padding-block: 44px 36px; align-items: center; position: relative;
}
.hero-pic img, .hero-pic video {
  width: 100%; height: auto; border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(236, 212, 151, .35);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; padding-block: 76px 64px; }
}
.hero-facts {
  list-style: none; margin: 0; padding: 18px 0 28px; display: flex; flex-wrap: wrap; gap: 10px 32px;
  color: #f1e4d0; font-size: 16px; position: relative;
  border-top: 1px solid rgba(201, 162, 76, .3);
}
.hero-facts li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero-facts svg { color: var(--gold); }
.hero-facts a { color: var(--gold-light); font-weight: 600; text-decoration: none; }

/* full / compact: รูปเต็มกว้าง ครอปได้ (โซนแบนเนอร์) ข้อความทับบนพื้นไล่สีแดง */
.hero-full .hero-slide, .hero-compact .hero-slide {
  display: grid; align-items: end; background: var(--red-900);
}
.hero-bg, .hero-bg img, .hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img, .hero-bg video { object-fit: cover; object-position: center 35%; }
.hero-full .hero-slide::after, .hero-compact .hero-slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44, 5, 7, .25) 0%, rgba(44, 5, 7, .7) 55%, rgba(44, 5, 7, .94) 100%);
}
.hero-compact .hero-slide::after {
  background: linear-gradient(100deg, rgba(44, 5, 7, .94) 0%, rgba(66, 10, 13, .86) 55%, rgba(44, 5, 7, .7) 100%);
}
.hero-full .wrap, .hero-compact .wrap { position: relative; z-index: 1; width: 100%; }
.hero-full .hero-slide { min-height: min(70vh, 640px); }
.hero-full .hero-body { padding-block: 56px; }
.hero-compact .hero-slide { min-height: 300px; }
.hero-compact .hero-body { padding-block: 64px 40px; max-width: 760px; }
.hero-compact h1, .hero-compact .h1 { font-size: clamp(30px, 4.6vw, 52px); }
@media (min-width: 900px) { .hero-compact .hero-slide { min-height: 380px; } }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.hero-dots button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 18px; height: 3px; background: rgba(255, 255, 255, .45); }
.hero-dots button[aria-current="true"]::before { background: var(--gold); }

/* ---------- จุดเด่น ---------- */
.features-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 479px) { .feature:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 480px) { .features-grid { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); } }
@media (min-width: 768px) { .features-grid { gap: 20px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature::before {
  content: ''; position: absolute; left: 50%; top: 0; width: 40px; height: 2px;
  background: var(--gold); transform: translateX(-50%);
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -22px rgba(92, 13, 18, .45); }
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); border: 1.5px solid var(--gold); background: #fff8e6;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; color: var(--red-800); }
.feature p { color: var(--muted); font-size: 15.5px; margin: 8px 0 0; line-height: 1.65; }
@media (min-width: 768px) { .feature { padding: 30px 22px; } .feature h3 { font-size: 20px; } .feature p { font-size: 16px; } }

/* ---------- เกี่ยวกับร้าน (พื้นแดงเข้ม) ---------- */
.sec-dark {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(201, 162, 76, .12), transparent 60%),
    var(--red-900);
  color: #f1e4d0;
}
.about { display: grid; gap: 32px; align-items: center; }
.about-pic img, .about-pic video { width: 100%; height: auto; border-radius: var(--radius); }
.about-text .rule { margin: 0 0 14px; }
.about-text h2 { font-size: clamp(28px, 4vw, 42px); color: var(--gold-light); margin-bottom: 18px; }
.about-text p { line-height: 1.9; }
.about-text .btn { margin-top: 10px; }
@media (min-width: 900px) {
  .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; }
  .about.pic-right .about-pic { order: 2; }
}

/* ---------- บริการ (การ์ด) — รูปเต็มสัดส่วนเดิม ไม่ครอป ไม่มีกรอบ ---------- */
.cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (min-width: 768px) { .cards { gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: grid; gap: 14px; }
.card-pic { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.card-pic img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.card:hover .card-pic img { transform: scale(1.03); }
.card-body h3 { font-size: 18px; color: var(--red-800); margin-top: 6px; }
.card-body p { color: var(--muted); font-size: 15.5px; margin: 6px 0 0; line-height: 1.65; }
@media (min-width: 768px) { .card-body h3 { font-size: 20px; } .card-body p { font-size: 16px; } }
.card-body .btn { margin-top: 12px; width: 100%; }
.chip {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--gold-deep);
  letter-spacing: .02em;
}
.card-price { font-weight: 700; color: var(--accent); margin-top: 8px; }
.card-price s { color: var(--muted); font-weight: 400; margin-left: 8px; }
.card-sold { color: var(--muted); margin-top: 8px; }

/* รายการแนวนอน — หน้าบริการ */
.rows { display: grid; gap: clamp(36px, 6vw, 72px); }
.row-item { display: grid; gap: 18px; align-items: center; }
.row-pic img { width: 100%; height: auto; border-radius: var(--radius); }
.row-no { display: block; font-size: 15px; font-weight: 700; color: var(--gold-deep); letter-spacing: .12em; }
.row-text h3 { font-size: clamp(24px, 3.2vw, 34px); color: var(--red-800); margin: 4px 0 12px; }
.row-text p { color: var(--muted); font-size: 17px; line-height: 1.85; }
.row-text .btn { margin-top: 6px; }
@media (min-width: 768px) {
  .row-item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
  .row-pic { max-width: 440px; }
  .row-item:nth-child(even) .row-pic { order: 2; margin-left: auto; }
}

/* ---------- ผลงาน (masonry ตามสัดส่วนจริงของรูป) ---------- */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols); column-gap: 18px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 1024px) { .gal-item { margin-bottom: 18px; } }
.gal-item a { display: block; overflow: hidden; border-radius: var(--radius); }
.gal-item img, .gal-item video { width: 100%; height: auto; border-radius: var(--radius); transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { padding: 8px 2px 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--ink); font-size: 15.5px; }

/* ---------- รีวิว ---------- */
.quotes { columns: 1; column-gap: 18px; }
@media (min-width: 640px) { .quotes { columns: 2; } }
@media (min-width: 1024px) { .quotes { columns: 3; } }
.quote {
  break-inside: avoid; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 18px;
}
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; fill: var(--gold); stroke: var(--gold); }
.quote blockquote { margin: 12px 0 16px; }
.quote blockquote p { margin: 0; font-size: 16.5px; line-height: 1.8; }
.quote figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.quote figcaption img, .avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.avatar {
  display: grid; place-items: center; background: var(--red-800); color: var(--gold-light);
  font-weight: 700; font-size: 17px; line-height: 1;
}
.quote figcaption > span { display: grid; line-height: 1.45; min-width: 0; }
.quote figcaption b { font-size: 15.5px; overflow-wrap: anywhere; }
.quote figcaption span span { color: var(--muted); font-size: 14px; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { max-width: 860px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 600; font-size: 17.5px;
  position: relative; color: var(--red-800); line-height: 1.55;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--gold-deep);
  transition: transform .25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq-a { margin: 0; padding: 0 0 22px; color: var(--muted); line-height: 1.85; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(52px, 7vw, 84px); text-align: center; position: relative; overflow: hidden; }
.cta-dark {
  background:
    radial-gradient(ellipse 50% 120% at 50% 120%, rgba(201, 162, 76, .25), transparent 70%),
    linear-gradient(180deg, var(--red-800), var(--red-950));
}
.cta-dark::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(201, 162, 76, .2); pointer-events: none;
}
.cta-soft { background: var(--paper-2); }
.cta-band .wrap { position: relative; display: grid; justify-items: center; gap: 24px; }
.cta-text { font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.45; margin: 0; max-width: 28ch; text-wrap: balance; }
.cta-dark .cta-text { color: var(--gold-light); }
.cta-soft .cta-text { color: var(--red-800); }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.contact-note { color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%; color: var(--accent);
  border: 1.5px solid var(--gold); background: #fff8e6; flex: none;
}
.contact-list small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.contact-list a { color: var(--red-800); font-weight: 600; text-decoration: none; font-size: 18px; overflow-wrap: anywhere; }
.contact-list span { line-height: 1.7; }
.addr { white-space: pre-line; }
.contact-list a.more { display: table; font-size: 15.5px; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.hours { margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.hours h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--red-800); margin-bottom: 8px; }
.hours h3 svg { color: var(--gold-deep); }
.hours ul { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.hours li:last-child { border-bottom: 0; }
.hours .closed { color: var(--accent); }

form.lead {
  display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px 20px; position: relative;
}
@media (min-width: 768px) { form.lead { padding: 30px 28px; } }
form.lead h3 { font-size: 21px; color: var(--red-800); }
form.lead label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
form.lead input, form.lead textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 4px;
  border: 1px solid #d7c6a5; background: #fff; color: var(--ink);
}
form.lead input:focus, form.lead textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
form.lead textarea { min-height: 120px; resize: vertical; }
form.lead .btn { width: 100%; }
form.lead .btn:disabled { opacity: .6; }
form.lead .hp { position: absolute; left: -9999px; }
form.lead .msg { font-size: 15px; margin: 0; }
form.lead .msg.ok { color: #1e6b3a; }
form.lead .msg.bad { color: #b3261e; }
.map-wrap { margin-top: 32px; }
.map { width: 100%; height: 380px; border: 0; border-radius: var(--radius); display: block; background: var(--paper-2); }

/* ---------- ข้อความอิสระ ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose-wide { max-width: none; }
.prose h2 { font-size: clamp(26px, 3.6vw, 38px); color: var(--red-800); margin-bottom: 18px; text-align: center; }
.prose p { line-height: 1.9; }

/* ---------- ราคาทองสมาคมค้าทองคำ ---------- */
.gold { background: var(--card); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 5vw, 56px); }
.gold-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.gold-head .rule { margin: 0 0 10px; }
.gold-head h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--red-800); }
.gold-meta { margin: 4px 0 0; color: var(--muted); font-size: 15.5px; }
.gold-chg { margin: 0; font-weight: 700; font-size: 16px; padding: 6px 14px; border-radius: 4px; background: var(--paper-2); }
.gold-chg.up { color: #1e6b3a; background: #e7f3ea; }
.gold-chg.down { color: #b3261e; background: #fbeaea; }
.gold-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .gold-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
.gold-card { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.gold-card h3 { font-size: 17px; color: var(--red-800); margin-bottom: 10px; }
.gold-card h3 small { font-weight: 400; color: var(--muted); font-size: 14px; }
.gold-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gold-card dl div { background: var(--paper); border-radius: 4px; padding: 10px 12px; }
.gold-card dt { font-size: 14px; color: var(--muted); }
.gold-card dd { margin: 0; }
.gold-card dd b { font-size: clamp(20px, 2.4vw, 26px); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.gold-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.gold-note a { color: var(--accent); }

/* ---------- รูปขยาย ---------- */
dialog.light { border: 0; padding: 0; background: none; max-width: 94vw; }
dialog.light::backdrop { background: rgba(20, 4, 5, .9); }
dialog.light img { max-height: 88vh; width: auto; border-radius: 4px; }
dialog.light button {
  position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--red-900); color: var(--gold-light); font-size: 26px; cursor: pointer;
}

/* ---------- บทความ ---------- */
.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; color: var(--red-800); }
.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: 1px solid var(--line); border-radius: var(--radius); 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(22px, 3vw, 28px); margin-block: 44px 14px; scroll-margin-top: 90px; color: var(--red-800); }
.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(--gold); }
.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: 14px; 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: 4px; text-decoration: none; font-weight: 600; }
.a-related li a:hover { color: var(--accent); }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--red-950); color: #dcc9ae; padding-block: 56px 28px; font-size: 16px; border-top: 1px solid rgba(201, 162, 76, .35); }
.foot .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.foot-brand b { color: var(--gold-light); font-size: 20px; }
.foot-brand p { margin: 6px 0 0; line-height: 1.7; }
.foot-col h2 { font-size: 16px; color: var(--gold); letter-spacing: .04em; margin-bottom: 12px; }
.foot-col p { margin: 0 0 8px; line-height: 1.7; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-light); }
.foot-nav { display: grid; gap: 2px; }
.foot-nav a { padding: 4px 0; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(201, 162, 76, .45); color: var(--gold-light); }
.copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: #a8937a; font-size: 14px; }

/* ปุ่มลอยล่างจอมือถือ: ไลน์กับโทรเท่านั้น สูงไม่เกิน 60px */
.float-contact { display: none; }
@media (max-width: 1023px) {
  .float-contact {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(44, 5, 7, .94); border-top: 1px solid rgba(201, 162, 76, .4);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .float-contact .btn { flex: 1; min-height: 44px; padding: 8px 12px; font-size: 16px; }
  .float-contact .btn:hover { transform: none; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .float-contact .btn-line + .btn .fc-num { display: none; }
}

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