/* RICHA TRADER — Clean Minimal Luxury: ครีม เบจ น้ำตาลทอง ดำ */
:root {
  --paper: #faf6ee; --paper-2: #f3ead9; --card: #fffdf8; --line: #e6dac4;
  --ink: #221b13; --muted: #67573f; --brown: #4a3722;
  --gold: #c39a4e; --gold-2: #e2c48a; --gold-ink: #7a5a1e; --gold-soft: #f6ecd6;
  --dark: #15110c; --dark-2: #211a12; --on-dark: #f4ecdc; --on-dark-2: #cdbd9f;
  --line-green: #06c755; --err: #a8321f; --err-bg: #fbece8; --ok: #2f6b3a;
  --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(34,27,19,.05), 0 8px 24px rgba(34,27,19,.07);
  --shadow-up: 0 2px 4px rgba(34,27,19,.07), 0 16px 36px rgba(34,27,19,.12);
  --gutter: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: 'Anuphan', 'Noto Sans Thai', system-ui, sans-serif; font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold-ink); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .5em; color: var(--ink); font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.muted { color: var(--muted); }
.i { width: 22px; height: 22px; flex: none; }
.i-brand { width: 22px; height: 22px; flex: none; }
.preview-bar { position: sticky; top: 0; z-index: 90; background: #9a4a10; color: #fff; text-align: center; padding: 8px 12px; font-size: 15px; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background-color .2s; line-height: 1.4; text-align: center; }
.btn .i, .btn .i-brand { width: 20px; height: 20px; }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--dark); color: var(--gold-2); }
.btn-primary:hover { background: #000; }
.btn-gold { background: linear-gradient(135deg, #e6c98f, #c39a4e); color: #1d160e; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-ghost-light { background: transparent; border-color: rgba(230,201,143,.55); color: var(--on-dark); }
.btn-ghost-light:hover { background: rgba(230,201,143,.1); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.link-more { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-weight: 600; color: var(--gold-ink); text-decoration: none; }
.link-more .i { width: 18px; height: 18px; transition: transform .2s; }
.link-more:hover .i { transform: translateX(3px); }

/* หัวเว็บ (ดำ-ทอง) */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21,17,12,.97); backdrop-filter: blur(8px); border-bottom: 1px solid #3a2e20; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand-text strong { color: var(--gold-2); font-size: 18px; letter-spacing: .06em; white-space: nowrap; }
.brand-text small { color: var(--on-dark-2); font-size: 13px; letter-spacing: .04em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--on-dark); font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.nav-link:hover { background: rgba(230,201,143,.1); }
.nav-link[aria-current="page"] { color: var(--gold-2); background: rgba(230,201,143,.12); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid #3a2e20; background: transparent; color: var(--gold-2); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .i-close { display: none; }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 18px; background: var(--dark); border-bottom: 1px solid #3a2e20; display: none; }
  .site-header.is-open .nav { display: flex; }
  .site-header.is-open .i-open { display: none; }
  .site-header.is-open .i-close { display: block; }
  .nav-link { padding: 12px 14px; font-size: 17px; }
  .nav-cta { margin: 8px 0 0; min-height: 48px; }
}
@media (max-width: 359px) { .brand-text small { display: none; } }

/* แบนเนอร์: คอมพิวเตอร์ ข้อความซ้าย รูปขวา / มือถือ รูปบน (ไม่ครอป) ข้อความล่าง */
.hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.hero-track { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: clamp(460px, 44vw, 640px); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease; }
.hero-media { grid-column: 2; grid-row: 1; position: relative; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 0%, rgba(21,17,12,0) 28%); pointer-events: none; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { grid-column: 1; grid-row: 1; display: flex; align-items: center; padding: 48px 24px 56px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter))); background: radial-gradient(120% 90% at 0% 0%, #2a2117 0%, var(--dark) 70%); }
.hero-box { max-width: 520px; }
.hero-brand { display: flex; flex-direction: column; margin: 0 0 14px; color: var(--gold-2); font-weight: 700; letter-spacing: .12em; font-size: 15px; }
.hero-brand span { color: var(--on-dark-2); font-weight: 400; letter-spacing: .08em; font-size: 13px; }
.hero-title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; line-height: 1.3; color: #fff8ea; margin: 0 0 14px; text-wrap: balance; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--on-dark-2); margin: 0 0 24px; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(21,17,12,.7); color: var(--gold-2); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.hero-nav.prev { left: 14px; } .hero-nav.next { right: 14px; }
.hero-dots { position: absolute; right: 0; bottom: 12px; left: 42%; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 10px; height: 10px; border-radius: 999px; background: rgba(244,236,220,.4); transition: width .3s; }
.hero-dots button[aria-current="true"]::before { width: 26px; background: var(--gold-2); }
@media (max-width: 899px) {
  .slide { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { grid-column: 1; grid-row: 1; aspect-ratio: 4 / 3; max-height: 70vh; }
  .hero-media::after { background: linear-gradient(0deg, var(--dark) 0%, rgba(21,17,12,0) 30%); }
  .hero-copy { grid-column: 1; grid-row: 2; padding: 8px var(--gutter) 36px; background: var(--dark); }
  .hero-dots { left: 0; top: calc(75vw - 54px); bottom: auto; }
  .hero-nav { display: none; }
}

/* ส่วนแนะนำ */
.intro { padding: 60px 0; }
.intro-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.intro h1 { font-size: clamp(28px, 3.4vw, 44px); }
.intro-p { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-ink); font-weight: 600; font-size: 15px; margin: 0 0 10px; letter-spacing: .02em; }
.kicker .i { width: 18px; height: 18px; }
.intro-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-points li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.intro-points .i { width: 28px; height: 28px; color: var(--gold-ink); margin-top: 2px; }
.intro-points strong { display: block; font-size: 16px; line-height: 1.45; }
.intro-points small { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 4px; }
@media (max-width: 900px) { .intro-in { grid-template-columns: 1fr; gap: 28px; } .intro { padding: 40px 0; } }
@media (max-width: 479px) { .intro-points { gap: 8px; } .intro-points li { flex-direction: column; gap: 8px; padding: 14px; } }

/* ส่วนเนื้อหา */
.sec { padding: 68px 0; }
.sec-tight { padding: 32px 0 64px; }
.sec-soft { background: var(--paper-2); }
.sec-dark { background: var(--dark); color: var(--on-dark); }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 8px; }
.sec-head.light h2 { color: #fff8ea; }
.sec-head.light .kicker { color: var(--gold-2); }
.sec-sub { color: var(--muted); margin: 0; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head-row .sec-head { margin-bottom: 0; }
@media (max-width: 767px) { .sec { padding: 46px 0; } .sec-head { margin-bottom: 20px; } }

/* สินทรัพย์ที่สอน */
.assets-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: stretch; }
.asset-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.asset { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 22px 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.asset-i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--gold-2); margin-bottom: 8px; }
.asset-i .i { width: 28px; height: 28px; }
.asset strong { font-size: 18px; }
.asset small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.method { list-style: none; margin: 0; padding: 22px; display: grid; gap: 10px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); align-content: center; }
.method li, .ticks li { display: flex; gap: 10px; align-items: flex-start; }
.method .i, .ticks .i { width: 20px; height: 20px; color: var(--gold-ink); margin-top: 4px; }
@media (max-width: 1023px) { .assets-wrap { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .asset-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* คอร์ส */
.track + .track { margin-top: 44px; }
.track-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.track-head h3 { font-size: clamp(21px, 2.2vw, 26px); margin: 0; }
.track-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.track-i { width: 52px; height: 52px; border-radius: 14px; background: var(--dark); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.course-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course-grid li[hidden] { display: none; }
.course { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.course-media { display: block; aspect-ratio: 4 / 3; background: var(--dark); overflow: hidden; }
.course-media img, .course-media svg { width: 100%; height: 100%; object-fit: cover; }
.course-media.is-art { aspect-ratio: auto; height: 88px; }
.course-body { display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 20px; flex: 1; }
.course-cat { display: inline-flex; align-items: center; color: var(--gold-ink); font-size: 14px; font-weight: 600; margin: 0; text-decoration: none; }
.course-name { font-size: 19px; line-height: 1.45; margin: 0; }
.course-name a { color: var(--ink); text-decoration: none; }
.course-name a::after { content: ''; }
.course-price { font-size: 26px; font-weight: 700; color: var(--gold-ink); margin: 2px 0 0; line-height: 1.3; }
.course-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 6px; }
.course-sum { color: var(--muted); font-size: 15px; }
.ticks { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 6px; font-size: 15px; line-height: 1.55; }
.ticks .i { width: 18px; height: 18px; margin-top: 3px; }
.course-go { margin-top: auto; align-self: flex-start; }
.course-go .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .course:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); } }
@media (max-width: 1023px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .course-grid { grid-template-columns: 1fr; gap: 12px; } .course { display: grid; grid-template-columns: 1fr; } }
.bonus { display: flex; gap: 12px; align-items: center; margin: 32px 0 0; padding: 16px 20px; border-radius: var(--r); background: var(--dark); color: var(--gold-2); font-weight: 600; font-size: 17px; }
.bonus .i { width: 26px; height: 26px; }
.note { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; padding: 14px 18px; border-radius: var(--r-sm); background: var(--gold-soft); color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.note .i { width: 20px; height: 20px; color: var(--gold-ink); margin-top: 2px; }

/* เทคนิค */
.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.tech { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.tech-art { background: #fbf7ef; border-bottom: 1px solid var(--line); padding: 10px; }
.tech-art .illus { width: 100%; height: auto; aspect-ratio: 360 / 220; }
.tech-art img { width: 100%; border-radius: 8px; }
.tech-body { padding: 16px 18px 18px; }
.tech-no { margin: 0; font-weight: 700; color: var(--gold); font-size: 15px; letter-spacing: .08em; }
.tech h3 { font-size: 18px; margin: 2px 0 6px; }
.tech p { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
@media (max-width: 1023px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .tech-grid { grid-template-columns: 1fr; gap: 12px; } }

/* คลิป (คงสัดส่วนเดิม ไม่ครอป) */
.video-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 24px; }
.video-card { margin: 0; }
.vid { width: 100%; height: auto; background: #000; border-radius: var(--r-sm); }
.video-card figcaption { margin-top: 10px; display: flex; flex-direction: column; }
.video-card strong { color: #fff8ea; font-size: 17px; }
.video-card figcaption > span { color: var(--on-dark-2); font-size: 15px; }
@media (max-width: 479px) { .video-grid { grid-template-columns: minmax(0, 320px); } }

/* รีวิว (masonry ตามสัดส่วนไฟล์จริง ไม่ครอป ไม่มีกรอบ) */
.masonry { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.tile { margin: 0; }
.tile img { width: 100%; height: auto; border-radius: 10px; }
.tile figcaption { font-size: 14px; color: var(--muted); padding: 6px 2px 0; }
@media (min-width: 480px) { .masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .masonry { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .masonry-photo { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }

/* ใบรับรอง */
.proof { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.proof h2 { font-size: clamp(24px, 2.8vw, 34px); }
.proof-text p { color: var(--muted); }
.proof-img { margin: 0; }
.proof-img img { width: 100%; border-radius: 12px; }
.proof-img figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 899px) { .proof { grid-template-columns: 1fr; gap: 20px; } }

/* จุดเด่น */
.feat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.feat-i { width: 52px; height: 52px; border-radius: 14px; background: var(--dark); color: var(--gold-2); display: grid; place-items: center; margin-bottom: 14px; }
.feat-i .i { width: 26px; height: 26px; }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 15px; margin: 0; line-height: 1.65; }
@media (max-width: 1023px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .feat-grid { gap: 10px; } .feat { padding: 16px; } .feat h3 { font-size: 16px; } .feat p { font-size: 14px; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--card); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 600; list-style: none; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-i { transition: transform .2s; color: var(--gold-ink); }
.faq-item[open] .faq-i { transform: rotate(180deg); }
.faq-a { padding: 0 20px 16px; color: var(--muted); }
.faq-a p:last-child { margin: 0; }

/* แถบชวนสมัคร */
.cta-band { background: radial-gradient(100% 140% at 100% 0%, #2c2218 0%, var(--dark) 60%); color: var(--on-dark-2); padding: 60px 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-text { max-width: 640px; }
.cta-text h2 { color: #fff8ea; font-size: clamp(24px, 2.8vw, 34px); }
.cta-text p { margin: 0; }
.cta-quote { display: flex; gap: 10px; align-items: center; color: var(--gold-2); font-size: 19px; font-weight: 600; margin-bottom: 10px !important; }
.cta-quote .i { width: 26px; height: 26px; }
@media (max-width: 767px) { .cta-text h2 br { display: none; } }

/* หัวหน้าย่อย */
.page-hero { padding: 40px 0 36px; background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 46px); margin-bottom: 10px; }
.page-lead { color: var(--muted); max-width: 780px; }
.page-lead p:last-child { margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 8px; align-items: center; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* เกี่ยวกับ */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.prose { max-width: 70ch; }
.prose p { color: #3b2f22; }
.about-img { margin: 0; }
.about-img img { border-radius: var(--r); }
.quote { margin: 28px 0 0; padding: 22px 24px; border-radius: var(--r); background: var(--dark); color: var(--gold-2); }
.quote .i { width: 28px; height: 28px; margin-bottom: 6px; }
.quote p { color: #fff8ea !important; font-size: 21px; font-weight: 600; margin: 0 0 4px; }
.quote cite { font-style: normal; color: var(--on-dark-2); font-size: 15px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ตัวกรอง */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.chip .i { width: 18px; height: 18px; color: var(--gold-ink); }
.chip.is-on { background: var(--dark); border-color: var(--dark); color: var(--gold-2); }
.chip.is-on .i { color: var(--gold-2); }
.empty { text-align: center; padding: 40px 16px; background: var(--paper-2); border-radius: var(--r); }
.empty-i { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--muted); }

/* หน้าคอร์ส */
.pd { padding-top: 20px; }
.pd-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.pd-main img { width: 100%; border-radius: var(--r); }
.pd-art { position: relative; border-radius: var(--r); overflow: hidden; background: var(--dark); }
.pd-art .course-art { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.pd-art-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 18px 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: linear-gradient(0deg, rgba(21,17,12,.95), rgba(21,17,12,0)); color: var(--on-dark-2); font-weight: 600; }
.pd-art-cap strong { color: var(--gold-2); font-size: 28px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.pd-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.pd-thumbs button[aria-current="true"] { border-color: var(--gold); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: clamp(26px, 3.2vw, 40px); margin-top: 2px; }
.pd-lead { color: var(--muted); }
.specs { margin: 0 0 20px; display: grid; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 15px; }
.specs dd { margin: 0; font-weight: 600; }
.specs .is-price dd { font-size: 26px; color: var(--gold-ink); line-height: 1.3; }
.pd-learn { margin-top: 44px; padding: 28px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); }
.pd-learn h2, .pd-desc h2 { font-size: 24px; }
.ticks-lg { font-size: 16.5px; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.pd-desc { margin-top: 36px; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; gap: 24px; } .pd-grid .pd-gallery { order: -1; } .specs div { grid-template-columns: 130px 1fr; } .ticks-lg { grid-template-columns: 1fr; } .pd-learn { padding: 20px 16px; } }

/* ติดต่อ */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.form-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 32px; scroll-margin-top: 90px; }
.form-card h2 { font-size: 26px; }
.req { color: var(--err); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15.5px; }
.field input, .field textarea, .field select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195,154,78,.25); }
.field textarea { resize: vertical; min-height: 130px; }
.field-err { margin: 0; color: var(--err); font-size: 14px; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: var(--err); background: var(--err-bg); }
.form-msg { margin: 0 0 12px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-err { color: var(--err); background: var(--err-bg); padding: 10px 14px; border-radius: var(--r-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { color: var(--muted); font-size: 14px; }
.form-done { text-align: center; padding: 24px 8px; }
.form-done:focus { outline: 0; }
.done-i { width: 56px; height: 56px; margin: 0 auto 10px; color: var(--ok); }
.channels h2 { font-size: 22px; }
.ch-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.ch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-height: 64px; }
.ch strong { display: block; line-height: 1.5; }
.ch span span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.ch-i { width: 44px; height: 44px; border-radius: 12px; background: var(--dark); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.ch-line .ch-i { background: var(--line-green); color: #fff; }
.ch-note { display: flex; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.ch-note .i { width: 20px; height: 20px; margin-top: 3px; color: var(--gold-ink); }
.addr { margin-top: 16px; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); }
.addr h3 { display: flex; gap: 8px; align-items: center; font-size: 17px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .fields { grid-template-columns: 1fr; } .form-card { padding: 22px 16px; } }

.nf { padding: 80px 0; }
.nf-code { font-size: 72px; font-weight: 700; color: var(--gold); margin: 0; line-height: 1.2; }

/* ท้ายเว็บ */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: 52px 0 0; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 32px; }
.footer-brand img { width: 72px; height: 72px; border-radius: 14px; margin-bottom: 12px; }
.footer-name { font-weight: 700; color: var(--gold-2); margin: 0; letter-spacing: .06em; }
.footer-en { margin: 0 0 8px; font-size: 15px; color: var(--on-dark); }
.footer-sum { font-size: 14.5px; }
.footer-h { font-size: 16px; margin-bottom: 8px; color: #fff8ea; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-links a, .footer-contact a { color: var(--on-dark); text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-2); text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.footer-contact li > span { padding-top: 0; display: flex; align-items: center; min-height: 44px; }
.footer-contact .i, .footer-contact .i-brand { width: 18px; height: 18px; margin-top: 13px; color: var(--gold-2); }
.footer-note { margin-top: 32px; }
.footer-note p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 14px 0; border-top: 1px solid #3a2e20; font-size: 14px; color: var(--on-dark-2); }
.footer-note .risk { color: #e9d9b8; }
.footer-note .i { width: 18px; height: 18px; margin-top: 3px; color: var(--gold-2); }
.footer-bottom { padding: 14px var(--gutter) 24px; font-size: 14px; border-top: 1px solid #3a2e20; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ปุ่มลอยมือถือ */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .mobile-bar { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(21,17,12,.97); border-top: 1px solid #3a2e20; }
  .mobile-bar.one { grid-template-columns: 1fr; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }
  .mobile-bar .i, .mobile-bar .i-brand { width: 20px; height: 20px; }
  .mb-line { background: var(--line-green); color: #fff; }
  .mb-call { background: linear-gradient(135deg, #e6c98f, #c39a4e); color: #1d160e; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* อนิเมชันตอนเลื่อนถึง (เล่นครั้งเดียว) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease var(--d, 0ms), transform .5s ease var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ขนาดพื้นที่กดขั้นต่ำ 44px และระยะบรรทัดไทย */
.footer-links a, .crumbs a { min-width: 44px; }
.course-name a { display: inline-block; padding: 10px 0; margin: -10px 0; }
a.course-cat { min-height: 44px; }
.hero-title, .course-price, .specs .is-price dd, .pd-art-cap strong, .stat .n, .nf-code { line-height: 1.4; }
.brand-text small, .hero-brand span { font-size: 14px; }
.hp input, input[type="hidden"] { font-size: 16px; }
.cert-grid { max-width: 760px; }
