/* ============================================================
   P9 SPEED — สอนรีแมพ.com
   main.css : สไตล์ชีตเดียว ใช้ร่วมกันทั้ง 3 หน้า
   ------------------------------------------------------------
   สารบัญ
   1.  Design Tokens (ตัวแปรสี ฟอนต์ ระยะห่าง)
   2.  @font-face (Kanit self-hosted)
   3.  Reset + Base
   4.  Layout (container, section)
   5.  ปุ่ม (Buttons)
   6.  Header + Nav
   7.  Hero
   8.  แถบตัวเลขความน่าเชื่อถือ (Stats)
   9.  หัวข้อ section + การ์ดพื้นฐาน
   10. แกลเลอรีตัวอย่าง (หน้าแรก)
   11. Alumni / Workshop (โซนมืด)
   12. Why us + USP
   13. ผู้สอน + วิดีโอ facade
   14. สิ่งที่ได้เรียน (skills, รายการรถ, ของแถม)
   15. เส้นทางการเรียน 3 PATH
   16. Showcase (โซนมืด)
   17. ราคา (Pricing)
   18. สิ่งที่ต้องเตรียม
   19. สถานที่ + แผนที่
   20. FAQ (details/summary)
   21. ติดต่อ (โซนมืด) + Footer
   22. ปุ่มลอย (FAB)
   23. หน้า Gallery (grid + lightbox)
   24. หน้า Course Package
   25. Reveal animation + Reduced motion
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* -- สีแบรนด์ P9 -- */
  --red:        #E53935;
  --red-dark:   #C62828;
  --red-deep:   #8E1B1B;
  --red-rgb:    229, 57, 53;

  /* -- โซนมืด (motorsport) -- */
  --ink:        #15181E;   /* พื้นหลังหลักโซนมืด */
  --ink-2:      #1D2129;   /* การ์ดบนพื้นมืด */
  --ink-border: #2A303B;

  /* -- โซนสว่าง -- */
  --bg:         #F6F7F9;   /* พื้นหลังหน้า */
  --surface:    #FFFFFF;   /* การ์ด */
  --border:     #E4E7EC;

  /* -- ตัวอักษร -- */
  --text:       #333942;   /* เนื้อความบนพื้นสว่าง */
  --text-muted: #5C6570;
  --heading:    #14181F;
  --on-dark:    #F4F6F9;   /* เนื้อความบนพื้นมืด */
  --on-dark-2:  #A9B2BF;

  /* -- สีสถานะ / ประกอบ -- */
  --green:      #1E7E34;
  --green-bg:   #E9F6EC;
  --gold:       #FFC94A;
  --line-green: #06C755;
  --fb-blue:    #1877F2;

  /* -- ระยะห่าง (สเกล 4px) -- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* -- ขนาดตัวอักษร (ยืดหยุ่นตามจอ) -- */
  --fs-h1:   clamp(1.9rem, 4.6vw + 0.5rem, 3.3rem);
  --fs-h2:   clamp(1.5rem, 2.6vw + 0.6rem, 2.2rem);
  --fs-h3:   clamp(1.15rem, 1.2vw + 0.8rem, 1.4rem);
  --fs-body: 1.0625rem;
  --fs-sm:   0.9375rem;

  /* -- มุมโค้ง -- */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-full: 999px;

  /* -- เงา (ใช้เท่าที่จำเป็น) -- */
  --shadow-sm: 0 1px 3px rgba(16, 20, 26, 0.08);
  --shadow-md: 0 6px 24px rgba(16, 20, 26, 0.10);

  /* -- อื่นๆ -- */
  --header-h: 64px;
  --container: 1180px;
}

/* ============================================================
   2. @FONT-FACE — Kanit (self-hosted)
   ============================================================ */
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/kanit-v17-thai-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/kanit-v17-thai-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/kanit-v17-thai-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/kanit-v17-thai-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/kanit-v17-thai-800.woff2') format('woff2');
}

/* ============================================================
   3. RESET + BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Kanit', system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red-dark);
}

ul, ol {
  list-style: none;
}

/* จุด anchor เลื่อนมาแล้วไม่โดน header บัง */
section[id], div[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-4);
}

.section {
  padding-block: var(--s-8);
}

.section--alt  { background: var(--surface); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  /* ขอบตัดเฉียงสไตล์ motorsport (ซ้ายต่ำ-ขวาสูง) */
  --cut: clamp(18px, 3vw, 44px);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding-block: calc(var(--s-8) + var(--cut));
}
.section--dark :is(h2, h3, h4) { color: var(--on-dark); }
.section--dark p               { color: var(--on-dark-2); }

/* เส้นสปีดไลน์แดง-ทองจางๆ พาดมุมโซนมืด */
.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 38%, rgba(var(--red-rgb), 0.07) 38.5%, rgba(var(--red-rgb), 0.07) 40%, transparent 40.5%),
    linear-gradient(115deg, transparent 43%, rgba(255, 201, 74, 0.05) 43.5%, rgba(255, 201, 74, 0.05) 44.5%, transparent 45%),
    linear-gradient(115deg, transparent 90%, rgba(var(--red-rgb), 0.06) 90.5%, rgba(var(--red-rgb), 0.06) 93%, transparent 93.5%);
}
.section--dark > .container { position: relative; z-index: 1; }

@media (min-width: 768px) {
  .section--dark { padding-block: calc(var(--s-9) + var(--cut)); }
}

/* โซนมืดก้อนสุดท้ายที่ชนกับ footer: ตัดเฉียงเฉพาะขอบบน
   (กันเกิดลิ่มสว่างคั่นระหว่างพื้นมืดสองก้อน) */
main > .section--dark:last-of-type {
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}

@media (min-width: 768px) {
  .section { padding-block: var(--s-9); }
}

/* ============================================================
   5. ปุ่ม
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.85em 1.9em;
  border: 0;
  border-radius: var(--r-full);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--red-rgb), 0.35);
}
.btn--primary:hover { box-shadow: 0 8px 22px rgba(var(--red-rgb), 0.45); }

.btn--green {
  background: linear-gradient(135deg, #2E9E46 0%, var(--green) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(30, 126, 52, 0.35);
}

/* ปุ่มโปร่งขอบขาว ใช้บนพื้นมืด */
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ปุ่มรอง บนพื้นสว่าง */
.btn--outline {
  background: transparent;
  color: var(--red-dark);
  border: 2px solid var(--red-dark);
}
.btn--outline:hover { background: rgba(var(--red-rgb), 0.06); }

/* ============================================================
   6. HEADER + NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 24, 30, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: var(--header-h);
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.brand img {
  width: auto;
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: auto;
  overflow-x: auto;             /* จอเล็ก: เลื่อนเมนูแนวนอนได้ */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  color: #D3D9E2;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  flex-shrink: 0;
  display: none;                /* โชว์เฉพาะจอใหญ่ */
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
    padding: 0.5em 1.3em;
    font-size: 0.95rem;
  }
}
@media (min-width: 900px) {
  .brand img { height: 46px; }
}

/* ---- แท็บเล็ต (600-899px): การ์ดที่เรียงแนวตั้งอย่าให้ยืดเต็มจอ ---- */
@media (min-width: 600px) and (max-width: 899px) {
  .price-grid,
  .path-grid   { max-width: 620px; margin-inline: auto; }
  .prep-grid > img,
  .package-photo { max-width: 560px; margin-inline: auto; }
  .instructor-grid > .video-card { max-width: 640px; margin-inline: auto; width: 100%; }
}

/* ============================================================
   7. HERO (โซนมืด motorsport)
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(88vh, 780px);
  padding-block: var(--s-8) calc(var(--s-8) + clamp(18px, 3vw, 44px));
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  text-align: center;
  /* ขอบล่างตัดเฉียงรับกับโซนมืดอื่นๆ */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(18px, 3vw, 44px)), 0 100%);
}

/* รูปพื้นหลังเป็น <img> จริง เพื่อให้เบราว์เซอร์เลือกไฟล์ตามจอ (LCP) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* ชั้นไล่เฉดทับรูป ให้ตัวหนังสืออ่านออกเสมอ */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* สปีดไลน์จางๆ */
    linear-gradient(115deg, transparent 30%, rgba(255, 201, 74, 0.06) 30.5%, rgba(255, 201, 74, 0.06) 31.5%, transparent 32%),
    linear-gradient(115deg, transparent 84%, rgba(var(--red-rgb), 0.12) 84.5%, rgba(var(--red-rgb), 0.12) 87%, transparent 87.5%),
    /* ชั้นมืดหลัก ให้ตัวหนังสืออ่านออก */
    linear-gradient(160deg,
      rgba(10, 12, 16, 0.92) 0%,
      rgba(21, 24, 30, 0.82) 45%,
      rgba(142, 27, 27, 0.55) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: rgba(var(--red-rgb), 0.14);
  border: 1px solid rgba(var(--red-rgb), 0.45);
  color: #FFB4B2;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.35em 1.1em;
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}

.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
  margin-bottom: var(--s-4);
}
.hero h1 .accent { color: var(--gold); }

.hero-sub {
  font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.3rem);
  color: var(--on-dark-2);
  max-width: 44em;
  margin-inline: auto;
  margin-bottom: var(--s-6);
}
.hero-sub strong { color: var(--gold); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}

/* ตัวเลขความน่าเชื่อถือใน hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  max-width: 620px;
  margin-inline: auto;
}
.hero-stats .stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-2);
  backdrop-filter: blur(4px);
}
.stat .num {
  display: block;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.stat .num .unit { font-size: 0.6em; font-weight: 700; color: var(--gold); }
.stat .label {
  display: block;
  font-size: 0.85rem;
  color: var(--on-dark-2);
}

/* ============================================================
   8. หัวข้อ SECTION + องค์ประกอบพื้นฐาน
   ============================================================ */
.section-head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--s-7);
}

.kicker {
  display: inline-block;
  color: var(--red-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.section--dark .kicker { color: var(--gold); }

.section-head h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.3;
  color: var(--heading);
  text-wrap: balance;
}

.section-head .lead {
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* บนพื้นมืด: หัวข้อและคำโปรยต้องเป็นสีสว่างเสมอ
   (กฎนี้ต้องอยู่หลัง .section-head h2 เพื่อชนะ specificity) */
.section--dark .section-head h2   { color: var(--on-dark); }
.section--dark .section-head .lead { color: var(--on-dark-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}

/* ============================================================
   9. แกลเลอรีตัวอย่าง (หน้าแรก)
   ============================================================ */
/* 10 รูป: มือถือ-แท็บเล็ต 2 คอลัมน์ (5 แถวพอดี), จอใหญ่ 5 คอลัมน์ (2 แถวพอดี)
   ไม่ใช้ 3-4 คอลัมน์เพราะ 10 รูปจะเหลือเศษไม่สวย */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 1024px) { .preview-grid { grid-template-columns: repeat(5, 1fr); } }

.frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-2);
}
.frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.frame:hover img { transform: scale(1.04); }

.frame figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-4) var(--s-3) var(--s-2);
  background: linear-gradient(to top, rgba(10, 12, 16, 0.85), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

.section-cta {
  text-align: center;
  margin-top: var(--s-6);
}

/* ============================================================
   10. ALUMNI / WORKSHOP (โซนมืด)
   ============================================================ */
.alumni-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 700px) { .alumni-grid { grid-template-columns: 1fr 1fr; } }

.alumni-card {
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.alumni-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.alumni-card .body { padding: var(--s-4) var(--s-5) var(--s-5); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid rgba(255, 201, 74, 0.4);
  border-radius: var(--r-full);
  padding: 0.15em 0.9em;
  margin-bottom: var(--s-2);
}

.alumni-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-1);
}
.alumni-card p { font-size: var(--fs-sm); }

.benefit-row {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
@media (min-width: 768px) { .benefit-row { grid-template-columns: repeat(3, 1fr); } }

.benefit {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ink-border);
  border-left: 3px solid var(--red);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.benefit h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-1);
}
.benefit p { font-size: var(--fs-sm); }

.quote {
  max-width: 680px;
  margin: var(--s-7) auto 0;
  text-align: center;
  font-size: clamp(1.1rem, 1.5vw + 0.7rem, 1.4rem);
  font-weight: 600;
  color: #fff;
  border-block: 1px solid var(--ink-border);
  padding-block: var(--s-5);
}
.quote::before { content: '“'; color: var(--red); font-size: 1.6em; line-height: 0; vertical-align: -0.3em; margin-right: 0.1em; }
.quote::after  { content: '”'; color: var(--red); font-size: 1.6em; line-height: 0; vertical-align: -0.3em; margin-left: 0.1em; }

/* ============================================================
   11. WHY US + USP
   ============================================================ */
.duo-card {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-sm);
}

.duo-card h3 {
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--heading);
  margin-bottom: var(--s-3);
}

.duo-card .duo-line {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.duo-card .duo-line strong { color: var(--red-dark); }

.exp-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  margin: var(--s-5) auto 0;
  padding: var(--s-4);
  max-width: 480px;
  background: var(--bg);
  border-radius: var(--r-md);
}
.exp-badge .big {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--red-dark);
  line-height: 1.1;
}
.exp-badge .big small {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--heading);
}
.exp-badge .note { font-size: var(--fs-sm); color: var(--text-muted); }

/* รายการ เรา "ใช่/ไม่ใช่" */
.pillars {
  display: grid;
  gap: var(--s-4);
  max-width: 900px;
  margin: var(--s-6) auto 0;
  text-align: left;
}
@media (min-width: 768px) { .pillars { grid-template-columns: 1fr 1fr; } }

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.pillar h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 2px solid var(--red);
}

.checklist li {
  position: relative;
  padding-left: 1.9em;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
}
.checklist li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
}
.checklist li.yes::before { content: '✓'; color: var(--green); }
.checklist li.no::before  { content: '✕'; color: var(--red);   }
.checklist li strong      { color: var(--heading); }

/* การ์ดจุดเด่น 6 ข้อ */
.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
@media (min-width: 640px)  { .usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .usp-grid { grid-template-columns: repeat(3, 1fr); } }

.usp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.usp:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.usp img {
  width: 64px;
  height: 64px;
  margin-bottom: var(--s-3);
}
.usp h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--s-1);
}
.usp p { font-size: var(--fs-sm); color: var(--text-muted); }

.wide-photo {
  margin-top: var(--s-7);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   12. ผู้สอน
   ============================================================ */
.instructor-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 900px) {
  .instructor-grid { grid-template-columns: 5fr 4fr; }
}

.instructor-intro {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.instructor-intro img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  flex-shrink: 0;
}
.instructor-intro h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.25;
}
.instructor-intro .role { color: var(--text-muted); font-size: var(--fs-sm); }

.credo p { margin-bottom: var(--s-3); }
.credo .hl      { color: var(--red-dark); font-weight: 600; }
.credo .hl-dark { color: var(--heading);  font-weight: 700; }

.credo-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4);
}
.credo-points span {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green);
}

/* วิดีโอ YouTube แบบ facade (คลิกก่อนค่อยโหลด iframe) */
.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
}
.video-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--heading);
}
.video-card .sub {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: var(--s-4);
}

.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: #000;
  padding: 0;
}
.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}
.yt-facade .play {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 68px;
  height: 48px;
  background: rgba(229, 57, 53, 0.95);
  border-radius: 12px;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.yt-facade:hover .play { transform: scale(1.08); }
.yt-facade .play::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card .note {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.video-card .punch {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--red-dark);
}

/* ============================================================
   13. สิ่งที่ได้เรียน
   ============================================================ */
.skills-grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 768px) { .skills-grid { grid-template-columns: 1fr 1fr; } }

.skill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.skill h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--s-1);
}
.skill h3::before {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  background: var(--red);
  border-radius: 2px;
  margin-right: 0.5em;
}
.skill p, .skill li { font-size: var(--fs-sm); color: var(--text-muted); }
.skill ul { margin-top: var(--s-2); }
.skill li {
  padding-left: 1.4em;
  position: relative;
  margin-bottom: var(--s-1);
}
.skill li::before {
  content: '•';
  position: absolute;
  left: 0.3em;
  color: var(--red);
  font-weight: 800;
}
.skill li strong { color: var(--text); }

/* รายการรถ 4 Zone */
.zones { margin-top: var(--s-7); }
.zone-head {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-4);
  margin-bottom: var(--s-3);
  border-left: 4px solid var(--red);
}
.car-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-1) var(--s-4);
  margin-bottom: var(--s-5);
}
@media (min-width: 560px)  { .car-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px)  { .car-list { grid-template-columns: repeat(3, 1fr); } }

.car-list li {
  position: relative;
  padding-left: 1.7em;
  font-size: var(--fs-sm);
}
.car-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* ของแถม */
.bonus-grid {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
@media (min-width: 640px)  { .bonus-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bonus-grid { grid-template-columns: repeat(4, 1fr); } }

.bonus {
  background: linear-gradient(160deg, #FFF9EC 0%, #FFF3D6 100%);
  border: 1px solid #F0DFAE;
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.bonus h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #7A5A12;
  margin-bottom: var(--s-1);
}
.bonus p { font-size: var(--fs-sm); color: #8A6D25; }

/* ============================================================
   14. เส้นทางการเรียน 3 PATH
   ============================================================ */
.path-grid {
  display: grid;
  gap: var(--s-4);
  counter-reset: path;
}
@media (min-width: 900px) { .path-grid { grid-template-columns: repeat(3, 1fr); } }

.path {
  counter-increment: path;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
  position: relative;
}
.path::before {
  content: 'PATH ' counter(path);
  display: inline-block;
  background: var(--red-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: var(--r-full);
  padding: 0.2em 1em;
  margin-bottom: var(--s-3);
}
.path img {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--s-3);
}
.path h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--s-2);
}
.path p { font-size: var(--fs-sm); color: var(--text-muted); }

.path-note {
  text-align: center;
  font-weight: 700;
  color: var(--red-dark);
  margin-top: var(--s-5);
}

.path-diagram {
  max-width: 720px;
  margin: var(--s-6) auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   15. SHOWCASE (โซนมืด)
   ============================================================ */
.showcase-grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 900px) { .showcase-grid { grid-template-columns: 4fr 5fr; } }

.showcase-grid h2 {
  font-size: var(--fs-h2);
  font-weight: 800;
  margin-bottom: var(--s-3);
}

.achievements { margin-block: var(--s-4); }
.achievements li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--ink-border);
}
.achievements li:last-child { border-bottom: 0; }
.achievements .ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(var(--red-rgb), 0.15);
  color: var(--red);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
}
.achievements strong {
  display: block;
  color: #fff;
  font-weight: 700;
}
.achievements span { font-size: var(--fs-sm); color: var(--on-dark-2); }

.showcase-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--ink-border);
}

/* ============================================================
   16. ราคา (PRICING)
   ============================================================ */
.price-grid {
  display: grid;
  gap: var(--s-5);
  align-items: stretch;
}
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  position: relative;
}

.price-card--featured {
  border: 2px solid var(--red);
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) {
  .price-card--featured { transform: scale(1.03); }
}

.price-card .flag {
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25em 1.2em;
  border-radius: var(--r-full);
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin-bottom: var(--s-2);
}

.price-card .price {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--red-dark);
  line-height: 1.2;
}
.price-card .price small {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card .desc {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-block: var(--s-2) var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--border);
}

.price-card ul { flex: 1; }
.price-card li {
  position: relative;
  padding-left: 1.7em;
  font-size: var(--fs-sm);
  margin-bottom: var(--s-2);
}
.price-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}
.price-card li strong { color: var(--heading); }

.price-card .btn { margin-top: var(--s-5); }

/* กล่องการันตี + มัดจำ */
.assure {
  max-width: 820px;
  margin: var(--s-7) auto 0;
  background: var(--green-bg);
  border: 1.5px solid var(--green);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
}
.assure h3 {
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: var(--s-2);
}
.assure p { font-size: var(--fs-sm); }
.assure p strong { color: var(--heading); }

.deposit {
  max-width: 820px;
  margin: var(--s-4) auto 0;
  display: grid;
  gap: var(--s-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
@media (min-width: 700px) { .deposit { grid-template-columns: 1fr 1fr; align-items: center; } }

.deposit .main strong { color: var(--red-dark); font-size: 1.2em; }
.deposit .main .sub   { font-size: var(--fs-sm); color: var(--text-muted); margin-top: var(--s-1); }

.cash-offer {
  background: linear-gradient(160deg, #FFF9EC 0%, #FFEFC9 100%);
  border: 1px solid #EDD79B;
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
}
.cash-offer .head { font-weight: 700; color: #7A5A12; font-size: var(--fs-sm); }
.cash-offer .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red-dark);
  line-height: 1.3;
}
.cash-offer .cond { font-size: 0.85rem; color: #8A6D25; }

/* รวมอยู่ในทุกคอร์ส */
.inclusions {
  max-width: 820px;
  margin: var(--s-4) auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.inclusions h3 {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: var(--s-4);
}
.inclusions ul {
  display: grid;
  gap: var(--s-2) var(--s-5);
}
@media (min-width: 700px) { .inclusions ul { grid-template-columns: 1fr 1fr; } }
.inclusions li {
  position: relative;
  padding-left: 1.7em;
  font-size: var(--fs-sm);
}
.inclusions li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* ============================================================
   17. สิ่งที่ต้องเตรียม
   ============================================================ */
.prep-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 900px) { .prep-grid { grid-template-columns: 3fr 2fr; } }

.prep-cols {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 640px) { .prep-cols { grid-template-columns: 1fr 1fr; } }

.prep-col h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  border-bottom: 2px solid var(--red);
  padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
}
.prep-item { margin-bottom: var(--s-4); }
.prep-item h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: var(--s-1);
}
.prep-item p { font-size: var(--fs-sm); color: var(--text-muted); }
.prep-item strong { color: var(--heading); }

.prep-note {
  background: var(--green-bg);
  border-radius: var(--r-md);
  color: var(--green);
  font-weight: 700;
  text-align: center;
  padding: var(--s-3) var(--s-4);
}

.prep-grid > img { border-radius: var(--r-lg); }

/* ============================================================
   18. สถานที่
   ============================================================ */
.location-wrap { text-align: center; }
.location-wrap .place {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
}
.location-wrap .place-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}

.map-frame {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.venue-photo {
  max-width: 860px;
  margin: var(--s-6) auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   19. FAQ — <details>/<summary>
   ============================================================ */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  cursor: pointer;
  list-style: none;
  padding: var(--s-4) var(--s-5);
  font-weight: 600;
  color: var(--heading);
  transition: background-color 0.15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: rgba(var(--red-rgb), 0.04); }

/* ลูกศรเปิด/ปิด */
.faq-list summary::after {
  content: '';
  flex-shrink: 0;
  width: 0.65em;
  height: 0.65em;
  border-right: 2.5px solid var(--red-dark);
  border-bottom: 2.5px solid var(--red-dark);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-right: 0.2em;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details[open] summary { border-bottom: 1px dashed var(--border); }

.faq-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  font-size: var(--fs-sm);
}
.faq-body p  { margin-bottom: var(--s-2); }
.faq-body ul { margin: var(--s-2) 0; }
.faq-body li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: var(--s-2);
}
.faq-body li::before {
  content: '–';
  position: absolute;
  left: 0.2em;
  color: var(--red);
  font-weight: 800;
}
.faq-body strong { color: var(--heading); }
.faq-body .tip {
  background: var(--bg);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-3);
}

/* ============================================================
   20. ติดต่อ (โซนมืด) + FOOTER
   ============================================================ */
.contact-grid {
  display: grid;
  gap: var(--s-5);
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 3fr 2fr; align-items: center; } }

.contact-buttons { display: grid; gap: var(--s-3); }

.contact-btn {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.contact-btn:hover { transform: translateY(-2px); }

.contact-btn .ic {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}
.contact-btn .ic svg { width: 24px; height: 24px; fill: #fff; }

.contact-btn.phone .ic { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); }
.contact-btn.line  .ic { background: var(--line-green); }
.contact-btn.fb    .ic { background: var(--fb-blue); }
.contact-btn:hover.phone { border-color: var(--red); }
.contact-btn:hover.line  { border-color: var(--line-green); }
.contact-btn:hover.fb    { border-color: var(--fb-blue); }

.contact-btn .t  { line-height: 1.4; }
.contact-btn .t small {
  display: block;
  font-size: 0.8rem;
  color: var(--on-dark-2);
  font-weight: 400;
}
.contact-btn .t strong { font-size: 1.05rem; font-weight: 700; }

.qr-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
  color: var(--text);
}
.qr-card h3 {
  color: var(--heading) !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s-1);
}
.qr-card p {
  color: var(--text-muted) !important;
  font-size: var(--fs-sm);
  margin-bottom: var(--s-3);
}
.qr-card img {
  width: min(200px, 60vw);
  margin-inline: auto;
  border-radius: var(--r-sm);
}

.hours {
  text-align: center;
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--on-dark-2);
}

/* Footer */
.site-footer {
  background: #0F1116;
  color: var(--on-dark-2);
  text-align: center;
  padding: var(--s-7) var(--s-4);
  font-size: var(--fs-sm);
}
.site-footer .brand-img {
  width: 150px;
  margin: 0 auto var(--s-4);
  opacity: 0.95;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-border);
  display: grid;
  place-items: center;
  transition: border-color 0.15s, background-color 0.15s;
}
.footer-social a:hover { border-color: var(--red); background: rgba(var(--red-rgb), 0.12); }
.footer-social svg { width: 19px; height: 19px; fill: var(--on-dark-2); }
.footer-social a:hover svg { fill: #fff; }

.site-footer .copy { opacity: 0.75; }

/* ============================================================
   21. ปุ่มลอย (FAB)
   ============================================================ */
.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
}

.fab-main {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(var(--red-rgb), 0.45);
  transition: transform 0.2s ease;
}
.fab-main svg { width: 26px; height: 26px; fill: #fff; transition: transform 0.2s ease; }
.fab-main:hover { transform: scale(1.06); }
.fab.open .fab-main svg { transform: scale(0.85); }

.fab-menu {
  position: absolute;
  bottom: 72px;
  right: 4px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity 0.2s ease, translate 0.2s ease, visibility 0.2s;
}
.fab.open .fab-menu {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.fab-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
}
.fab-item svg { width: 24px; height: 24px; fill: #fff; }
.fab-item.phone { background: #F39C12; }
.fab-item.line  { background: var(--line-green); }
.fab-item.fb    { background: var(--fb-blue); }

.fab-item .tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  translate: 0 -50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3em 0.9em;
  border-radius: var(--r-sm);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s;
}
.fab-item:hover .tip { opacity: 1; visibility: visible; }

/* ============================================================
   22. หน้า GALLERY
   ============================================================ */
.page-hero {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding: var(--s-8) var(--s-4) var(--s-7);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  /* เส้นแสงแดงจางๆ ให้เข้าธีม motorsport */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.page-hero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--s-2);
  text-wrap: balance;
}
.page-hero p { color: var(--on-dark-2); font-size: 1.1rem; }

.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
  color: var(--on-dark-2);
}
.breadcrumb a { color: var(--on-dark-2); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--gold); font-weight: 600; }

/* เมนูกระโดดไปแต่ละหมวด */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.jump-nav a {
  color: #D3D9E2;
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  border: 1px solid var(--ink-border);
  border-radius: var(--r-full);
  padding: 0.35em 1.1em;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.jump-nav a:hover {
  color: #fff;
  border-color: var(--red);
  background: rgba(var(--red-rgb), 0.12);
}

/* กริดรูปแบบ masonry ด้วย CSS columns — ไม่ต้องใช้ JS */
.masonry {
  columns: 1;
  column-gap: var(--s-3);
}
@media (min-width: 560px)  { .masonry { columns: 2; } }
@media (min-width: 900px)  { .masonry { columns: 3; } }

.masonry a {
  display: block;
  break-inside: avoid;
  margin-bottom: var(--s-3);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--ink-2);
}
.masonry img {
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.masonry a:hover img { transform: scale(1.03); opacity: 0.92; }

/* Lightbox ด้วย <dialog> */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
}
.lightbox::backdrop {
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  border-radius: var(--r-md);
}
.lightbox .lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-3);
  color: #fff;
}
.lightbox .lb-count { font-size: var(--fs-sm); color: #A9B2BF; }
.lightbox .lb-controls { display: flex; gap: var(--s-2); }
.lightbox button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  padding: 0.4em 1em;
  cursor: pointer;
  transition: background-color 0.15s;
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }

/* ============================================================
   23. หน้า COURSE PACKAGE
   ============================================================ */
.package-wrap {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 900px) { .package-wrap { grid-template-columns: 2fr 3fr; } }

.package-photo {
  background: linear-gradient(160deg, #FDFDFD 0%, #EEF1F5 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
/* ปักหมุดรูปติดจอ "เฉพาะ" ตอนมี 2 คอลัมน์เท่านั้น
   (จอเล็กเป็นคอลัมน์เดียว ถ้า sticky รูปจะลอยทับข้อความ) */
@media (min-width: 900px) {
  .package-photo {
    position: sticky;
    top: calc(var(--header-h) + 16px);
  }
}

.package-title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--heading);
  line-height: 1.3;
  margin-bottom: var(--s-2);
}
.package-price {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.3;
}
.package-price small {
  display: block;
  font-size: 0.5em;
  font-weight: 500;
  color: var(--text-muted);
}
.package-tagline { color: var(--text-muted); margin-bottom: var(--s-5); }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-4);
}
.tool-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
}
.tool-card .sub {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--s-3);
}
.tool-card ul {
  display: grid;
  gap: var(--s-1) var(--s-4);
}
@media (min-width: 640px) { .tool-card ul { grid-template-columns: 1fr 1fr; } }
.tool-card li {
  position: relative;
  padding-left: 1.6em;
  font-size: var(--fs-sm);
}
.tool-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

/* กล่องรุ่นที่ไม่รองรับ */
.tool-card--warn { border: 1.5px dashed #E1A7A7; background: #FFFAFA; }
.tool-card--warn h3 { color: var(--red-deep); }
.tool-card--warn li::before { content: '✕'; color: #D98282; }
.tool-card--warn .notice {
  background: var(--bg);
  border-left: 3px solid var(--text-muted);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--fs-sm);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-3);
}
.tool-card--warn .consult {
  font-size: var(--fs-sm);
  background: #fff;
  border: 1px solid #F3CBCB;
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-3);
}

/* Q&A สั้นในหน้าแพ็กเกจ */
.mini-faq h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--red-dark);
  margin-bottom: var(--s-1);
}
.mini-faq p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}

/* ============================================================
   24. REVEAL + ลูกเล่น (progressive enhancement)
   - ซ่อนเฉพาะเมื่อ JS ทำงาน (body.js) เท่านั้น
   - JS พัง = เนื้อหามองเห็นปกติทั้งหมด
   - ทุกอนิเมชันใช้ transform/opacity เท่านั้น (ลื่นบนมือถือ)
   ============================================================ */

/* ---- โผล่เมื่อเลื่อนถึง ---- */
body.js .reveal:not([data-stagger]) {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.55s ease, translate 0.55s ease;
}
body.js .reveal:not([data-stagger]).in {
  opacity: 1;
  translate: 0 0;
}

/* ---- โผล่ทีละชิ้น (ลูกๆ ของกล่องที่ติด data-stagger)
       JS ใส่ transition-delay ให้ลูกแต่ละตัว ---- */
body.js [data-stagger] > * {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.5s ease, translate 0.5s ease;
}
body.js [data-stagger].in > * {
  opacity: 1;
  translate: 0 0;
}

/* ---- เส้นคาดใต้หัวข้อ section (วิ่งออกเมื่อเลื่อนถึง) ---- */
.section-head h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(1);
  transition: transform 0.6s ease 0.2s;
}
body.js .section-head h2::after { transform: scaleX(0); }
body.js .section-head.in h2::after,
body.js .reveal.in .section-head h2::after { transform: scaleX(1); }

/* ---- Hero: ไล่โผล่ทีละชิ้นตอนเปิดหน้า (CSS ล้วน ไม่พึ่ง JS) ---- */
@keyframes riseIn {
  from { opacity: 0; translate: 0 26px; }
}
.hero-badge   { animation: riseIn 0.6s ease 0.05s both; }
.hero h1      { animation: riseIn 0.6s ease 0.15s both; }
.hero-sub     { animation: riseIn 0.6s ease 0.28s both; }
.hero-actions { animation: riseIn 0.6s ease 0.40s both; }
.hero-stats   { animation: riseIn 0.6s ease 0.52s both; }

/* รูปพื้นหลัง hero ซูมช้าๆ ตอนเปิด (Ken Burns) */
@keyframes heroZoom {
  from { scale: 1.1; }
  to   { scale: 1; }
}
.hero-bg img { animation: heroZoom 14s ease-out both; }

/* ---- ป้ายทอง "เรียนซ้ำฟรีจนกว่าจะเป็น" ดุ๊กดิ๊กเรียกสายตา ---- */
.hero h1 .accent {
  display: inline-block;
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
  color: var(--gold);
  padding: 0.04em 0.45em;
  border-radius: 14px;
  border: 2px solid rgba(255, 201, 74, 0.7);
  box-shadow: 0 8px 25px rgba(183, 28, 28, 0.55);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  animation: wiggle 3s infinite;
}
@keyframes wiggle {
  0%, 16%, 100% { transform: scale(1) rotate(-1.5deg); }
  4%  { transform: scale(1.07) rotate(0.5deg); }
  8%  { transform: scale(1.07) rotate(-3deg); }
  12% { transform: scale(1.07) rotate(0deg); }
}

/* ---- ปุ่ม CTA ใน hero เรืองแสงหายใจ ---- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(var(--red-rgb), 0.35); }
  50%      { box-shadow: 0 6px 28px rgba(var(--red-rgb), 0.65); }
}
.hero .btn--primary { animation: glowPulse 2.6s ease-in-out infinite; }

/* ---- ปุ่มลอย pulse เป็นจังหวะ (ลูกเล่นเด่นของเว็บเดิม) ---- */
@keyframes fabPulse {
  0%   { box-shadow: 0 6px 18px rgba(var(--red-rgb), 0.45), 0 0 0 0 rgba(var(--red-rgb), 0.35); }
  70%  { box-shadow: 0 6px 18px rgba(var(--red-rgb), 0.45), 0 0 0 16px rgba(var(--red-rgb), 0); }
  100% { box-shadow: 0 6px 18px rgba(var(--red-rgb), 0.45), 0 0 0 0 rgba(var(--red-rgb), 0); }
}
.fab-main { animation: fabPulse 2.5s infinite; }

/* ---- Header เข้มขึ้นเมื่อเลื่อนลง ---- */
.site-header { transition: background-color 0.25s ease, box-shadow 0.25s ease; }
.site-header.scrolled {
  background: rgba(13, 15, 19, 0.97);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* ---- การ์ดโซนมืด: ขอบเรืองแดงเมื่อชี้ ---- */
.alumni-card, .benefit {
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.alumni-card:hover, .benefit:hover {
  border-color: rgba(var(--red-rgb), 0.55);
  transform: translateY(-3px);
}

/* ---- Lightbox เด้งเปิด ---- */
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.94); }
}
.lightbox[open] img { animation: lbIn 0.25s ease; }

/* ---- ผู้ใช้ที่ตั้งค่า "ลดการเคลื่อนไหว": ปิดลูกเล่นทั้งหมด ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.js .reveal,
  body.js [data-stagger] > * { opacity: 1; translate: 0 0; }
  body.js .section-head h2::after { transform: scaleX(1); }
}


/* ============================================================
   26. PRO LOADING + MOTION PRO (แพ็คอัปเกรด)
   ============================================================ */

/* ---- Shimmer skeleton บนกรอบรูประหว่างโหลด ---- */
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
/* กรอบบนพื้นมืด */
body.js :is(.frame, .masonry a, .alumni-card, .showcase-photo) {
  background-image: linear-gradient(110deg,
    #1D2129 40%, #262C37 50%, #1D2129 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
/* กรอบบนพื้นสว่าง */
body.js :is(.wide-photo, .venue-photo, .path-diagram, .package-photo) {
  background-image: linear-gradient(110deg,
    #EDEFF3 40%, #E2E6EC 50%, #EDEFF3 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
/* รูปโหลดเสร็จแล้ว: หยุด shimmer */
body.js :is(.frame, .masonry a, .alumni-card, .showcase-photo,
            .wide-photo, .venue-photo, .path-diagram, .package-photo):has(img.loaded) {
  animation: none;
  background-image: none;
}
/* รูป lazy เฟดเข้านุ่มๆ เมื่อโหลดเสร็จ */
body.js img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.js img[loading="lazy"].loaded { opacity: 1; }

/* ---- แถบบอกความคืบหน้าการเลื่อน (ใต้ขอบบนสุด) ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 300;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---- โลโก้หดเล็กลงเมื่อเลื่อน ---- */
.brand img { transition: height 0.25s ease; }
.site-header.scrolled .brand img { height: 34px; }
@media (min-width: 900px) {
  .site-header.scrolled .brand img { height: 38px; }
}

/* ---- แสงวิ่งผ่านปุ่มหลักเป็นจังหวะ ---- */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: shine 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shine {
  0%, 55%   { left: -70%; }
  80%, 100% { left: 140%; }
}

/* ---- ตัวเลขราคา/สถิติ ไล่เฉดสีพรีเมียม ---- */
.price-card .price,
.exp-badge .big {
  background: linear-gradient(135deg, var(--red) 20%, var(--red-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red-dark); /* เผื่อเบราว์เซอร์เก่า */
}
.price-card .price small,
.exp-badge .big small {
  -webkit-text-fill-color: initial;
  background: none;
}

/* ---- ปุ่มกลับขึ้นบนสุด (JS สร้างเอง) ---- */
.back-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(var(--red-rgb), 0.7);
  background: rgba(21, 24, 30, 0.85);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  translate: 0 12px;
  transition: opacity 0.25s ease, translate 0.25s ease, visibility 0.25s,
    background-color 0.2s ease;
  backdrop-filter: blur(4px);
}
.back-top.show {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}
.back-top:hover { background: var(--red-dark); border-color: var(--red); }

@media (prefers-reduced-motion: reduce) {
  body.js img[loading="lazy"] { opacity: 1; }
  .btn--primary::after { display: none; }
  body.js :is(.frame, .masonry a, .alumni-card, .showcase-photo,
              .wide-photo, .venue-photo, .path-diagram, .package-photo) {
    animation: none;
  }
}

/* ============================================================
   27. รีดีไซน์: รูปกดขยาย / โปรไฟล์ครูปิง / FAQ / แถบมือถือ
   ============================================================ */

/* ---- รูปพรีวิวหน้าแรก: กดขยายได้ (ทุกขนาดจอ) ---- */
.frame a {
  display: block;
  cursor: zoom-in;
}
.frame a::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(10, 12, 16, 0.55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3Cpath d='M8 11h6M11 8v6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  transition: background-color 0.15s;
}
.frame a:hover::after { background-color: rgba(var(--red-rgb), 0.85); }
.frame figcaption { pointer-events: none; }

/* ---- โปรไฟล์ครูปิง ---- */
.instructor-intro .kicker { margin-bottom: var(--s-1); }
.instructor-photo {
  width: 132px !important;
  height: 132px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 5px rgba(var(--red-rgb), 0.15), 0 10px 28px rgba(var(--red-rgb), 0.28);
  flex-shrink: 0;
}

/* การ์ดเครดิต 4 ใบ */
.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  margin-block: var(--s-4);
}
.cred {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--r-md);
  padding: var(--s-3) var(--s-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cred:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.cred .big {
  display: block;
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.35;
  background: linear-gradient(135deg, var(--red) 20%, var(--red-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red-dark);
}
.cred .small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 2px;
}
.instructor-note {
  color: var(--text);
  margin-bottom: var(--s-4);
}

/* กล่อง quote ลายเซ็นครูปิง */
.sig-quote {
  background: linear-gradient(160deg, #1D2129 0%, #15181E 100%);
  border-left: 4px solid var(--red);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  position: relative;
  overflow: hidden;
}
.sig-quote::before {
  content: '"';
  position: absolute;
  top: -18px;
  right: 10px;
  font-size: 6rem;
  font-weight: 800;
  color: rgba(var(--red-rgb), 0.18);
  line-height: 1;
}
.sig-quote p {
  color: #F4F6F9;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: var(--s-1);
  position: relative;
}
.sig-quote .sig {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---- FAQ โฉมใหม่ ---- */
.faq-list summary {
  justify-content: flex-start;
}
.faq-list summary::before {
  content: 'Q';
  flex-shrink: 0;
  width: 1.75em;
  height: 1.75em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85em;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(var(--red-rgb), 0.3);
}
.faq-list summary::after { margin-left: auto; }
.faq-list details {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-list details[open] {
  border-color: rgba(var(--red-rgb), 0.45);
  border-left: 3px solid var(--red);
  box-shadow: var(--shadow-md);
}
.faq-list details[open] summary {
  color: var(--red-dark);
  background: linear-gradient(180deg, rgba(var(--red-rgb), 0.05) 0%, transparent 100%);
  border-bottom: 1px dashed rgba(var(--red-rgb), 0.25);
}

/* แถบชวนถามต่อท้าย FAQ */
.faq-cta {
  max-width: 820px;
  margin: var(--s-5) auto 0;
  background: linear-gradient(135deg, #1D2129 0%, #15181E 100%);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.faq-cta strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}
.faq-cta p { color: var(--on-dark-2); margin: 0; font-size: var(--fs-sm); }
.btn--line {
  background: linear-gradient(135deg, #06C755 0%, #00A94A 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}
.btn--line svg { width: 20px; height: 20px; fill: #fff; }

/* ---- แถบติดต่อติดขอบล่าง (เฉพาะมือถือ) ---- */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  display: none;
  gap: 8px;
  background: rgba(15, 17, 22, 0.97);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--red);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.mobile-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 4px;
  border-radius: var(--r-full);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.mobile-cta svg { width: 17px; height: 17px; fill: #fff; flex-shrink: 0; }
.mobile-cta .call { background: #F39C12; }
.mobile-cta .line { background: linear-gradient(135deg, #06C755 0%, #00A94A 100%); }
.mobile-cta .book { background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); }

@media (max-width: 767px) {
  .mobile-cta { display: flex; }
  body:has(.mobile-cta) { padding-bottom: 62px; }
  body:has(.mobile-cta) .fab { display: none; }
  body:has(.mobile-cta) .back-top { bottom: 76px; left: 14px; }
}

/* ---- Skip link (ผู้ใช้คีย์บอร์ด/screen reader — กด Tab แรกจะโผล่) ---- */
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 400;
  background: var(--red-dark);
  color: #fff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---- หน้า 404 ---- */
.page-404 {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding: var(--s-7) var(--s-4);
}
.page-404::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 201, 74, 0.06) 30.5%, rgba(255, 201, 74, 0.06) 31.5%, transparent 32%),
    linear-gradient(115deg, transparent 80%, rgba(var(--red-rgb), 0.1) 80.5%, rgba(var(--red-rgb), 0.1) 84%, transparent 84.5%);
}
.page-404 .inner { position: relative; max-width: 560px; }
.page-404 .code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--red) 20%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red);
}
.page-404 h1 { color: #fff; font-size: var(--fs-h2); font-weight: 800; margin-block: var(--s-3); }
.page-404 p { color: var(--on-dark-2); margin-bottom: var(--s-5); }
.page-404 .actions { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---- ขั้นตอนสมัครเรียน 4 ขั้น (โซนมืด) ---- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  counter-reset: none;
}
@media (min-width: 640px)  { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--ink-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  padding-top: calc(var(--s-5) + 14px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step-card:hover {
  border-color: rgba(var(--red-rgb), 0.55);
  transform: translateY(-3px);
}
.step-num {
  position: absolute;
  top: -22px;
  left: var(--s-5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(var(--red-rgb), 0.45), 0 0 0 4px var(--ink);
}
.step-card h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.step-card p { font-size: var(--fs-sm); margin: 0; }
.step-card p strong { color: var(--gold); }
.steps-grid + .section-cta { margin-top: var(--s-7); }