/* Kru Po Vocal Studio — น้ำเงิน (น่าเชื่อถือ) · ดำ (พรีเมียม) · ครีม (อบอุ่น) · ส้มแบรนด์ (ปุ่มหลัก) */
:root {
  --bg: #f6f0e4;
  --tint: #eee5d2;
  --surface: #fffaf1;
  --ink: #14161f;
  --muted: #5a5d6b;
  --navy: #16264a;
  --navy-2: #22396b;
  --orange: #ef7d32;
  --orange-hi: #f39352;
  --orange-text: #b4501a;
  --dark: #0f1117;
  --dark-2: #1a1d27;
  --on-dark: #e9e6df;
  --on-dark-muted: #a9adba;
  --line: #06c755;
  --rule: rgba(20, 22, 31, 0.12);
  --r: 18px;
  --r-sm: 12px;
  --wrap: 1180px;
  --gut: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(20, 22, 31, 0.05), 0 8px 24px -12px rgba(20, 22, 31, 0.18);
  --shadow-hi: 0 2px 4px rgba(20, 22, 31, 0.06), 0 16px 36px -14px rgba(20, 22, 31, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
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(--bg);
  overflow-x: clip;
  padding-bottom: 76px;
}
@media (min-width: 1024px) { body { padding-bottom: 0; } }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.b { width: 1.25em; height: 1.25em; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 768px) { :root { --gut: 24px; } }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-row { justify-content: center; }
.muted { color: var(--muted); }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-call { background: var(--orange); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(239, 125, 50, 0.7); }
.btn-line { background: var(--line); color: var(--ink); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: rgba(255, 255, 255, 0.06); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn-call:hover { background: var(--orange-hi); }
  .btn-outline:hover { background: var(--navy); color: #fff; }
  .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
}
.btn:active { transform: translateY(0) scale(0.98); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(22, 38, 74, 0.25); padding-bottom: 2px; }
.text-link:hover { border-color: var(--navy); }

/* ---------- หัวเว็บ ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 240, 228, 0.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand-mark { width: auto; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text b { font-size: 16px; color: var(--navy); white-space: nowrap; }
.brand-text small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-call { display: none; }
.nav-toggle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; }
.nav-toggle .i { width: 26px; height: 26px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded='true'] .i-open { display: none; }
.nav-toggle[aria-expanded='true'] .i-close { display: block; }
.main-nav { position: fixed; inset: 64px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px var(--gut) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0.2s; box-shadow: var(--shadow-hi); }
.main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.main-nav a[aria-current='page'] { color: var(--orange-text); }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .main-nav { position: static; transform: none; opacity: 1; visibility: visible; background: none; border: 0; padding: 0; box-shadow: none; }
  .main-nav ul { display: flex; gap: 4px; }
  .main-nav a { border: 0; font-size: 16px; padding: 8px 14px; border-radius: 999px; transition: background-color 0.2s; }
  .main-nav a:hover { background: rgba(22, 38, 74, 0.07); }
  .main-nav a[aria-current='page'] { color: var(--navy); background: rgba(22, 38, 74, 0.09); }
  .header-call { display: inline-flex; min-height: 44px; padding: 8px 18px; font-size: 16px; }
  .header-row { min-height: 76px; }
  .brand-mark { height: 46px; }
  .brand-text b { font-size: 18px; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; height: min(70svh, 640px); min-height: 460px; overflow: hidden; background: var(--dark); color: #fff; isolation: isolate; }
@media (min-width: 768px) { .hero { height: min(86svh, 56.25vw); min-height: 540px; max-height: 860px; } }
.hero-track { position: absolute; inset: -6% 0 0; will-change: transform; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.slide.is-active { opacity: 1; }
.slide picture, .slide img { width: 100%; height: 100%; }
.slide img { object-fit: cover; object-position: 50% 30%; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 12, 20, 0.92) 0%, rgba(10, 12, 20, 0.55) 42%, rgba(10, 12, 20, 0.05) 75%); }
@media (min-width: 768px) { .hero-shade { background: linear-gradient(to top, rgba(10, 12, 20, 0.85), rgba(10, 12, 20, 0) 60%), linear-gradient(to right, rgba(10, 12, 20, 0.75), rgba(10, 12, 20, 0) 65%); } }
.hero-content { position: absolute; inset: auto 0 0; z-index: 2; padding-bottom: 76px; }
.hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--orange-hi); margin-bottom: 10px; }
.hero h1 { font-size: clamp(30px, 7.6vw, 64px); line-height: 1.25; max-width: 15ch; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero-text { font-size: clamp(16px, 2vw, 20px); max-width: 38ch; margin: 14px 0 22px; color: rgba(255, 255, 255, 0.9); }
.hero-ctrl { position: absolute; inset: auto 0 18px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.hero-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(10, 12, 20, 0.3); color: #fff; }
.hero-arrow:hover { background: rgba(255, 255, 255, 0.15); }
.hero-dots { display: flex; gap: 0; }
.hero-dots button { width: 32px; height: 44px; border: 0; background: none; position: relative; padding: 0; }
.hero-dots button::after { content: ''; position: absolute; left: 6px; right: 6px; top: 50%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.4); transition: background-color 0.3s; }
.hero-dots button[aria-selected='true']::after { background: var(--orange); }
@media (max-width: 767px) { .hero-content .btn-ghost-light { display: none; } }

/* ---------- โปรโมชั่น ---------- */
.promo { background: var(--navy); color: #fff; }
.promo-row { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding-block: 18px; }
.promo-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(239, 125, 50, 0.18); color: var(--orange-hi); }
.promo h2 { font-size: 19px; }
.promo p { color: rgba(255, 255, 255, 0.82); font-size: 15px; margin: 2px 0 0; }
.promo .btn { grid-column: 1 / -1; }
@media (min-width: 768px) { .promo-row { grid-template-columns: auto 1fr auto; } .promo .btn { grid-column: auto; } }

/* ---------- ส่วนเนื้อหา ---------- */
.sec { padding-block: 56px; }
.sec-top0 { padding-top: 8px; }
@media (min-width: 768px) { .sec { padding-block: 88px; } .sec-top0 { padding-top: 16px; } }
.sec-tint { background: var(--tint); }
.sec-dark { background: var(--dark); color: var(--on-dark); }
.sec-dark .sec-lead, .sec-dark .prose { color: var(--on-dark-muted); }
.sec-head { max-width: 760px; margin-bottom: 32px; }
@media (min-width: 768px) { .sec-head { margin-bottom: 44px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--orange-text); margin-bottom: 10px; }
.eyebrow::before { content: ''; width: 28px; height: 13px; flex: none; background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 3px); opacity: 0.8; }
.sec-dark .eyebrow { color: var(--orange); }
.sec-title { font-size: clamp(26px, 4.4vw, 42px); color: var(--navy); }
.sec-dark .sec-title { color: #fff; }
.sec-lead { font-size: 18px; color: var(--muted); margin-top: 12px; }
.prose { color: #2c2f3a; }
.prose p { margin-bottom: 1em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 0.55em; width: 16px; height: 9px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg) translateY(-3px); }

/* หัวหน้าแต่ละหน้า */
.page-hero { padding: 20px 0 32px; }
@media (min-width: 768px) { .page-hero { padding: 32px 0 48px; } }
.page-hero h1, .detail-body h1 { font-size: clamp(30px, 5vw, 54px); color: var(--navy); max-width: 22ch; }
.page-lead { font-size: 18px; color: var(--muted); max-width: 62ch; margin-top: 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .i { width: 14px; height: 14px; }

/* ---------- จุดเด่น (2/3/4/4) ---------- */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .highlights { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .highlights { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.hl { background: var(--surface); border-radius: var(--r); padding: 18px 16px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .hl { padding: 26px 22px; } }
.hl-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--orange-hi); margin-bottom: 14px; }
.hl-ico .i { width: 24px; height: 24px; }
.hl h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
@media (min-width: 768px) { .hl h3 { font-size: 19px; } }
.hl p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- แนะนำ ---------- */
.intro { display: grid; gap: 32px; align-items: center; }
.intro-text .sec-title { margin-bottom: 18px; }
.intro-text .text-link { margin-top: 8px; }
.intro-media { justify-self: center; width: min(100%, 340px); }
@media (min-width: 768px) { .intro { grid-template-columns: 1.3fr 1fr; gap: 64px; } .intro-media { justify-self: end; } }
.vid { width: 100%; height: auto; border-radius: var(--r); background: #000; }

/* ---------- การ์ดคอร์ส (2/2/3/3) ---------- */
.course-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .course-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.course-card { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
@media (hover: hover) and (pointer: fine) { .course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); } }
.course-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.course-media img { width: 100%; height: auto; }
.course-media.is-icon { aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, var(--navy-2), var(--navy)); color: var(--orange-hi); position: relative; overflow: hidden; }
.course-media.is-icon::after { content: ''; position: absolute; inset: auto -10% 18% -10%; height: 40px; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 9px); transform: rotate(-6deg); }
.course-icon .i { width: 52px; height: 52px; stroke-width: 1.4; }
.course-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 768px) { .course-body { padding: 20px 22px 22px; } }
.chip { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--navy); background: rgba(22, 38, 74, 0.08); padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.course-body h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
@media (min-width: 768px) { .course-body h3 { font-size: 20px; } }
.course-sum { font-size: 15px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-price { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; color: var(--muted); }
.course-price b { color: var(--orange-text); font-size: 18px; }
.course-price .cp-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; flex: none; transition: transform 0.2s var(--ease); }
.course-card:hover .course-price .cp-go { transform: translateX(2px); }
@media (max-width: 479px) { .course-sum { -webkit-line-clamp: 2; } .course-price { flex-wrap: wrap; } .course-price .cp-go { display: none; } }

/* ตัวกรอง */
.filters { display: grid; gap: 14px; margin-bottom: 24px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 0 18px; box-shadow: var(--shadow); max-width: 420px; }
.search .i { color: var(--muted); }
.search input { flex: 1; border: 0; background: none; font: inherit; font-size: 16px; min-height: 50px; outline: none; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filters .chips { margin: 0; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--surface); font-size: 15px; font-weight: 600; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip-btn .i { width: 18px; height: 18px; }
.chip-btn[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.sec-dark .chip-btn { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: var(--on-dark); }
.empty { padding: 32px 0; color: var(--muted); }
.empty a { color: var(--navy); font-weight: 600; margin-left: 4px; }

/* ตารางราคา */
.price-table-wrap { margin-bottom: 28px; }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.price-table caption { text-align: left; font-size: 20px; font-weight: 700; color: var(--navy); padding: 0 0 12px; }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.price-table thead th { background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody th { font-weight: 600; }
.price-table small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.price-table td b { font-size: 19px; color: var(--orange-text); }
@media (max-width: 767px) {
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table thead { display: none; }
  .price-table { background: none; box-shadow: none; overflow: visible; }
  .price-table tbody { display: grid; gap: 10px; }
  .price-table tr { background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .price-table th, .price-table td { padding: 0; border: 0; }
  .price-table tbody th { grid-column: 1 / -1; font-size: 16px; margin-bottom: 4px; }
  .price-table td:nth-of-type(1), .price-table td:nth-of-type(2) { display: inline; font-size: 14px; color: var(--muted); }
  .price-table td:nth-of-type(1) { grid-column: 1; }
  .price-table td:nth-of-type(2) { grid-column: 1; }
  .price-table td:nth-of-type(2)::after { content: ' ชั่วโมง'; }
  .price-table td:nth-of-type(3) { grid-column: 2; grid-row: 2 / span 2; text-align: right; align-self: center; }
}
.note { color: var(--muted); font-size: 15px; }
.note a { color: var(--navy); font-weight: 600; }

/* ---------- แกลเลอรี masonry (2/3/3/4) ไม่ครอป ไม่ใส่กรอบ ---------- */
.masonry { column-count: 2; column-gap: 10px; }
@media (min-width: 480px) { .masonry { column-count: 3; } }
@media (min-width: 768px) { .masonry { column-gap: 16px; } }
@media (min-width: 1024px) { .masonry { column-count: 4; } }
.m-item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 768px) { .m-item { margin-bottom: 16px; } }
.m-item[hidden] { display: none; }
.m-open { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--r-sm); overflow: hidden; }
.m-open img { width: 100%; height: auto; transition: transform 0.4s var(--ease); }
@media (hover: hover) and (pointer: fine) { .m-open:hover img { transform: scale(1.03); } }
.m-item figcaption { font-size: 13px; color: var(--muted); padding: 6px 2px 0; line-height: 1.5; }
.sec-dark .m-item figcaption { color: var(--on-dark-muted); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(8, 9, 14, 0.9); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; height: auto; margin: 0 auto; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; font-size: 15px; }
.lb-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); color: #fff; display: grid; place-items: center; }

/* ---------- รีวิว ---------- */
.reviews { display: grid; gap: 14px; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.review { margin: 0; background: var(--surface); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.review .q { width: 30px; height: 30px; color: var(--orange); margin-bottom: 10px; }
.review blockquote { margin: 0 0 18px; font-size: 16px; }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 15px; }
.review figcaption b { color: var(--navy); }
.review figcaption span { color: var(--muted); font-size: 14px; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 17px; font-weight: 600; color: var(--navy); }
.faq-item summary .i { transition: transform 0.25s var(--ease); color: var(--muted); }
.faq-item[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; color: #2c2f3a; }
.faq + .center, .course-grid + .center, .masonry + .lightbox + .center, .yt-grid + .center, .clips + .center { margin-top: 32px; }

/* ---------- ปิดท้าย ---------- */
.final-cta { background: var(--dark); color: #fff; padding-block: 56px; position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; inset: 50% -10% auto; height: 120px; transform: translateY(-50%) rotate(-3deg); background: repeating-linear-gradient(to bottom, rgba(239, 125, 50, 0.16) 0 1px, transparent 1px 24px); pointer-events: none; }
.final-row { position: relative; display: grid; gap: 22px; }
.final-cta h2 { font-size: clamp(26px, 4vw, 40px); }
.final-cta p { color: var(--on-dark-muted); margin-top: 8px; }
@media (min-width: 1024px) { .final-row { grid-template-columns: 1fr auto; align-items: center; } .final-cta { padding-block: 72px; } }

/* ---------- หน้าเกี่ยวกับ ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split-media img { width: 100%; height: auto; border-radius: var(--r); }
.split-text .prose { margin-bottom: 22px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split-rev .split-text { order: 0; } }
.media-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.media-pair img, .media-pair video { border-radius: var(--r); }
.addr { display: flex; gap: 8px; align-items: flex-start; }
.addr a { color: var(--navy); font-weight: 600; }
.cert { display: grid; gap: 32px; align-items: center; }
.cert .sec-title { margin-bottom: 16px; }
.cert-media img { width: 100%; height: auto; border-radius: var(--r-sm); }
@media (min-width: 1024px) { .cert { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.member-photo { border-radius: var(--r); overflow: hidden; margin-bottom: 12px; }
.member-photo img { width: 100%; height: auto; }
.member-ph { aspect-ratio: 3 / 4; display: grid; place-items: center; background: var(--tint); color: rgba(22, 38, 74, 0.35); }
.member-ph .i { width: 56px; height: 56px; stroke-width: 1.3; }
.member h3 { font-size: 18px; color: var(--navy); }
.member-role { font-size: 15px; color: var(--orange-text); font-weight: 600; margin: 2px 0 6px; }
.member-bio { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- หน้ารายละเอียดคอร์ส ---------- */
.detail { display: grid; gap: 28px; align-items: start; }
.detail-media img { width: 100%; height: auto; border-radius: var(--r); }
.detail-icon { aspect-ratio: 3 / 4; border-radius: var(--r); display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, var(--navy-2), var(--navy)); color: var(--orange-hi); }
.detail-icon .i { width: 96px; height: 96px; stroke-width: 1.3; }
@media (min-width: 1024px) { .detail { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } .detail-media { position: sticky; top: 100px; } }
@media (max-width: 1023px) { .detail-media { max-width: 420px; } }
.price-box { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); margin: 22px 0 28px; }
.price-box p { margin-bottom: 14px; font-size: 16px; color: var(--muted); }
.price-box b { font-size: 28px; color: var(--orange-text); }
.price-box small { display: block; font-size: 14px; }

/* ---------- ผลงาน: วิดีโอ ---------- */
.yt-grid { display: grid; gap: 16px; margin-bottom: 32px; }
@media (min-width: 768px) { .yt-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.yt { margin: 0; }
.yt-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.yt-btn:hover img { opacity: 1; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; background: var(--orange); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.yt-play .i { width: 28px; height: 28px; margin-left: 4px; fill: currentColor; }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-sm); display: block; }
.yt figcaption, .clip figcaption { font-size: 15px; padding-top: 10px; color: var(--on-dark); }
.clips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 32px; }
@media (min-width: 768px) { .clips { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.clip { margin: 0; }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 24px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; } }
.contact-side { display: grid; gap: 12px; }
.call-card, .line-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.call-card { background: var(--orange); color: var(--ink); }
.line-card { background: var(--surface); }
.line-card .b { width: 44px; height: 44px; color: var(--line); }
.call-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--orange); display: grid; place-items: center; flex: none; }
.call-ico .i { width: 26px; height: 26px; }
.call-card small, .line-card small { display: block; font-size: 14px; }
.call-card b { font-size: 26px; letter-spacing: 0.01em; }
.line-card b { font-size: 20px; }
@media (hover: hover) and (pointer: fine) { .call-card:hover, .line-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); } }
.info-card { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.info-card h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.info-card h2:not(:first-child) { margin-top: 16px; }
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card .text-link { margin-top: 8px; }
.form-card { background: var(--surface); border-radius: var(--r); padding: 22px 18px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.form-card h2 { font-size: 24px; color: var(--navy); }
.form-card .muted { font-size: 15px; margin: 4px 0 20px; }
.form-grid { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.field label em { color: #b3261e; font-style: normal; }
.field .opt { font-weight: 400; color: var(--muted); font-size: 14px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 17px; min-height: 52px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid rgba(20, 22, 31, 0.22); background: #fff; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22, 38, 74, 0.15); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #b3261e; }
.field-err { color: #b3261e; font-size: 14px; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 14px 0 0; padding: 14px 16px; border-radius: var(--r-sm); font-weight: 600; }
.form-msg.ok { background: #e3f3e6; color: #1d5b2b; }
.form-msg.err { background: #fbe7e5; color: #8c1d16; }
.map-wrap iframe { display: block; width: 100%; height: 360px; border: 0; filter: saturate(0.9); }
@media (min-width: 768px) { .map-wrap iframe { height: 440px; } }
.nf { padding-block: 96px; }

/* ---------- ท้ายเว็บ ---------- */
.site-footer { background: #0b0d12; color: var(--on-dark-muted); padding-top: 56px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1.1fr 1fr 0.7fr; } .f-brand { grid-column: auto; } }
.f-logo { width: 120px; height: auto; margin-bottom: 16px; }
.f-h { font-size: 16px; color: #fff; margin-bottom: 12px; }
.f-list, .f-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; }
.f-list .i { margin-top: 3px; color: var(--orange); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; color: #fff; transition: background-color 0.2s; }
.socials a:hover { background: rgba(255, 255, 255, 0.18); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 40px; padding-block: 20px; font-size: 14px; }

/* ---------- ปุ่มลอยล่างจอ (มือถือ): ไลน์ + โทร สูง 56px ---------- */
.dock { position: fixed; z-index: 60; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); background: rgba(246, 240, 228, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); }
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; }
.dock-line { background: var(--line); color: var(--ink); }
.dock-call { background: var(--orange); color: var(--ink); }
@media (min-width: 1024px) { .dock { display: none; } }

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

/* พื้นที่กดอย่างน้อย 44px บนจอสัมผัส */
.brand { min-height: 44px; }
.crumbs a, .text-link, .f-list a, .f-nav a, .addr a, .info-card .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.f-list, .f-nav { gap: 0; }
.f-list li { align-items: center; }
.f-list .i { margin-top: 0; }
.hero-dots button { width: 44px; }
.hero-dots button::after { left: 12px; right: 12px; }
.f-nav a { min-width: 44px; padding-right: 8px; }
.note a, .empty a { display: inline-flex; align-items: center; min-height: 44px; }

/* ทำไมต้องครูโป: บล็อกรับรองการสอน */
.why-cert { margin-top: 20px; background: var(--dark); color: var(--on-dark); border-radius: var(--r); overflow: hidden; display: grid; }
.why-cert-media img { width: 100%; height: auto; }
.why-cert-text { padding: 22px 20px 24px; }
.why-cert-text .chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(239, 125, 50, 0.16); color: var(--orange-hi); }
.why-cert-text .chip .i { width: 16px; height: 16px; }
.why-cert-text h3 { font-size: clamp(20px, 2.4vw, 26px); color: #fff; margin: 4px 0 10px; }
.why-cert-text p:not(.chip) { color: var(--on-dark-muted); font-size: 16px; }
.why-cert-text .text-link { color: var(--orange-hi); border-color: rgba(243, 147, 82, 0.4); margin-top: 6px; }
@media (min-width: 768px) { .why-cert { margin-top: 24px; grid-template-columns: 1.15fr 1fr; align-items: center; } .why-cert-text { padding: 28px 32px; } }

/* เบอร์โทรแยกตามคอร์ส */
.phone-note { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin: 10px 0 0 !important; }
.phone-note .i { width: 16px; height: 16px; }
.call-card-alt { background: var(--navy); color: #fff; }
.call-card-alt .call-ico { background: var(--orange); color: var(--ink); }
.call-card-alt b { font-size: 22px; }

/* จุดเด่นแบบมีข้อความยาว: มือถือ 1 คอลัมน์ / คอม 2x2 (ข้อความยาวคอลัมน์เดียว) */
.highlights.has-detail { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .highlights.has-detail { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.highlights.has-detail .hl { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: start; }
.highlights.has-detail .hl-ico { grid-row: span 3; margin-bottom: 0; }
.highlights.has-detail .hl h3 { font-size: 19px; }
.highlights.has-detail .hl > p { font-size: 16px; color: var(--ink); font-weight: 600; line-height: 1.6; }
.hl-detail { grid-column: 2; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
.hl-detail p { font-size: 16px; color: var(--muted); line-height: 1.75; }
@media (max-width: 479px) { .highlights.has-detail .hl { grid-template-columns: 1fr; } .highlights.has-detail .hl-ico { grid-row: auto; margin-bottom: 12px; } .hl-detail { grid-column: 1; } }
