/* สไตล์ร่วมของหน้าบริการ — แยกไฟล์เพื่อให้เบราว์เซอร์แคชใช้ซ้ำได้ทุกหน้า */
*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #0a0a0a; --panel: #111; --line: #222; --line-soft: #1a1a1a;
  --text: #e9e9e9; --muted: #8d8d8d; --dim: #6a6a6a; --accent: #ffd21f;
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Poppins, "Noto Sans Thai", Tahoma, sans-serif;
  font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(10,10,10,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.head-right { display: flex; align-items: center; gap: 10px; }
.lang-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.lang-pill:hover { border-color: #3a3a3a; color: var(--text); text-decoration: none; }
.lang-pill svg { width: 16px; height: 11px; border-radius: 2px; display: block; }
.head-cta { display: inline-flex; align-items: center; height: 34px; padding: 0 16px; border-radius: 99px; background: var(--accent); color: #111; font-size: 13px; font-weight: 600; white-space: nowrap; }
.head-cta:hover { background: #ffe06a; text-decoration: none; }

/* ---- breadcrumb ---- */
.crumbs { padding: 22px 0 0; color: var(--dim); font-size: 12.5px; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--muted); }
.crumbs span { margin: 0 7px; opacity: .5; }

/* ---- hero ---- */
.page-hero { padding: 26px 0 40px; border-bottom: 1px solid var(--line-soft); }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--dim); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
h1 { margin: 14px 0 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
.lede { margin: 18px 0 0; max-width: 720px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-tags span { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; background: var(--panel); color: var(--muted); font-size: 11.5px; }

/* ---- content ---- */
main { padding: 46px 0 20px; }
h2 { margin: 44px 0 14px; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
h2:first-child { margin-top: 0; }
h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 16px; color: #b8b8b8; }
strong { color: var(--text); font-weight: 600; }
ul, ol { margin: 0 0 18px; padding-left: 22px; color: #b8b8b8; }
li { margin-bottom: 9px; }
li::marker { color: var(--accent); }

.panel { margin: 22px 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 22px 0; }
.steps li { counter-increment: step; position: relative; margin-bottom: 16px; padding: 16px 20px 16px 58px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 16px;
  color: var(--accent); font: 600 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.steps b { display: block; margin-bottom: 3px; color: var(--text); }
.steps span { color: var(--muted); font-size: 14px; }

.faq { margin: 22px 0; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 500; color: var(--text); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-size: 19px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

.cta-band { margin: 52px 0 0; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(125deg, #171b12 0%, #101010 55%, #0c0c0c 100%); }
.cta-band h2 { margin: 0 0 8px; font-size: 23px; }
.cta-band p { margin: 0 0 20px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 99px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: #ffe06a; text-decoration: none; }
.btn-ghost { border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn-ghost:hover { border-color: #3a3a3a; text-decoration: none; }

.related { margin: 46px 0 0; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.related h2 { margin: 0 0 16px; font-size: 19px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.related-grid a { display: block; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 500; }
.related-grid a:hover { border-color: rgba(255,210,31,.45); text-decoration: none; }
.related-grid a em { display: block; margin-top: 4px; color: var(--dim); font-size: 12px; font-style: normal; font-weight: 400; }

/* ---- footer ---- */
.site-foot { margin-top: 56px; padding: 30px 0 40px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-foot a { color: var(--muted); }

@media (max-width: 760px) {
  .related-grid { grid-template-columns: 1fr; }
  .site-head .wrap { height: 60px; }
  .brand span { display: none; }
  main { padding-top: 34px; }
}
