:root {
  --ink: #172026;
  --muted: #65717c;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #d9dedf;
  --gold: #c49a45;
  --teal: #0d6b6f;
  --brick: #8d3f2f;
  --charcoal: #263238;
  --shadow: 0 18px 45px rgba(23, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 32, 38, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: var(--white);
}

.site-header.is-scrolled .brand-mark,
.site-header.is-open .brand-mark {
  border-color: var(--line);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  opacity: 0.72;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-menu {
  position: relative;
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-menu-trigger::after {
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  width: 280px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-menu:hover .nav-submenu,
.nav-menu:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-submenu a {
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 700;
}

.nav-submenu a:hover {
  background: #edf3f1;
  color: var(--teal);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-open .site-nav a:hover {
  background: #edf3f1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-toggle svg,
.button svg,
.course-icon svg,
.document-list svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 30, 0.88) 0%, rgba(17, 24, 30, 0.58) 44%, rgba(17, 24, 30, 0.1) 100%),
    linear-gradient(0deg, rgba(17, 24, 30, 0.72) 0%, rgba(17, 24, 30, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 8vw, 112px) clamp(70px, 12vh, 122px);
  color: var(--white);
}

.eyebrow,
.section-kicker,
.course-number {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.92rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(2.8rem, 7vw, 6.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.8vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 18px;
  font-size: 1.24rem;
  line-height: 1.35;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--gold);
  color: #1d1608;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.button.dark {
  background: var(--charcoal);
  color: var(--white);
}

.button.outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.section-band {
  padding: clamp(38px, 6vw, 72px) 0;
  background: #edf3f1;
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-grid,
.payment-grid,
.split-grid,
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.course-name-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.course-name-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 800;
}

.course-name-list a:hover {
  border-color: var(--teal);
  background: #edf3f1;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  overflow: hidden;
  padding: 0 24px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 32, 38, 0.04);
}

.course-thumb {
  width: calc(100% + 48px);
  aspect-ratio: 16 / 9;
  margin: 0 -24px 20px;
  object-fit: cover;
  object-position: center;
  background: #d8dee2;
}

.course-card:nth-child(2) .course-icon {
  background: #e4f0ef;
  color: var(--teal);
}

.course-card:nth-child(3) .course-icon {
  background: #f7ead9;
  color: var(--brick);
}

.course-card:nth-child(4) .course-icon {
  background: #eceff1;
  color: var(--charcoal);
}

.course-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fff4da;
  color: #9b741f;
}

.course-registrations {
  display: inline-flex;
  width: fit-content;
  align-items: baseline;
  gap: 6px;
  margin: -8px 0 14px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #edf3f1;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
}

.course-registrations span {
  color: var(--charcoal);
  font-size: 1.1rem;
  line-height: 1;
}

.course-card dl {
  display: grid;
  gap: 10px;
  margin: auto 0 22px;
}

.course-card dl div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.course-card dl div:has([data-course-date]),
.course-card dl div:has([data-course-place]),
.detail-meta div:has([data-course-date]),
.detail-meta div:has([data-course-place]) {
  display: none;
}

.course-card dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.course-card dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.course-slot-item {
  display: block;
  padding: 8px 0;
  line-height: 1.45;
}

.course-slot-item + .course-slot-item {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.course-card a,
.document-list a,
.footer-actions a {
  color: var(--teal);
  font-weight: 800;
}

.split-section {
  background: var(--white);
}

.detail-section {
  background: #f5f0e7;
}

.alt-detail {
  background: #edf3f1;
}

.alt-detail .detail-meta div {
  background: #f7fbfa;
}

.alt-detail .check-list li::before {
  background: var(--brick);
}

.photoreal-detail {
  background: #f7ead9;
}

.quick-detail {
  background: #eceff1;
}

.course-page {
  padding-top: 76px;
}

.course-page h1 {
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.course-hero {
  padding: clamp(44px, 7vw, 84px) 0;
}

.course-hero .detail-hero {
  margin-bottom: 0;
}

.course-hero .hero-actions {
  margin-top: 28px;
}

.course-visual-band {
  padding: clamp(28px, 5vw, 54px) 0 0;
  background: var(--paper);
}

.course-visual-band img {
  width: 100%;
  max-height: 620px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.video-section {
  background: var(--paper);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 32, 38, 0.04);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #101820;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--ink);
  font-size: 1rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: stretch;
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.detail-hero p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.detail-meta {
  display: grid;
  gap: 12px;
}

.detail-meta div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.detail-meta span,
.schedule-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-meta strong {
  font-size: 1.08rem;
}

.estimate-landing {
  background: var(--paper);
}

.estimate-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: end;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(44px, 8vw, 88px);
  color: var(--white);
  background: var(--charcoal);
}

.estimate-hero-image,
.estimate-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.estimate-hero-image {
  object-fit: cover;
  object-position: center;
}

.estimate-hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 30, 0.92) 0%, rgba(17, 24, 30, 0.64) 48%, rgba(17, 24, 30, 0.22) 100%),
    linear-gradient(0deg, rgba(17, 24, 30, 0.86) 0%, rgba(17, 24, 30, 0.08) 56%);
}

.estimate-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: end;
}

.estimate-hero-copy {
  max-width: 820px;
}

.estimate-hero .section-kicker {
  color: #f4cf7b;
}

.estimate-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
}

.estimate-hero-copy p:not(.section-kicker) {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.estimate-hero .detail-meta div {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.estimate-hero .detail-meta span {
  color: rgba(255, 255, 255, 0.68);
}

.estimate-highlight-band {
  position: relative;
  z-index: 2;
  margin-top: -34px;
  padding-bottom: clamp(42px, 7vw, 80px);
}

.estimate-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.estimate-highlights div {
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.estimate-highlights svg,
.outcome-grid svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.estimate-highlights span {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.estimate-highlights strong {
  font-size: 1.05rem;
  line-height: 1.4;
}

.estimate-outcomes {
  padding-top: 0;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.outcome-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.outcome-grid h3,
.outcome-grid p {
  margin: 0;
}

.outcome-grid p,
.estimate-proof p,
.estimate-final-cta p {
  color: var(--muted);
}

.estimate-proof {
  background: #edf3f1;
}

.estimate-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.estimate-proof-grid p {
  font-size: 1.06rem;
}

.estimate-proof-grid .check-list {
  margin-top: 22px;
}

.estimate-proof-grid img {
  width: 100%;
  max-height: 560px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.estimate-final-cta {
  padding: clamp(48px, 8vw, 86px) 0;
  background: var(--charcoal);
}

.estimate-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--white);
}

.estimate-cta-panel h2 {
  margin-bottom: 8px;
}

.estimate-cta-panel p {
  margin: 0;
}

.promo-page {
  background: var(--paper);
}

.promo-hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 76px);
  align-items: end;
  overflow: hidden;
  padding: clamp(72px, 10vw, 128px) 0 clamp(42px, 7vw, 82px);
  color: var(--white);
  background: var(--charcoal);
}

.promo-hero-image,
.promo-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.promo-hero-image {
  object-fit: cover;
  object-position: center;
}

.promo-hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 24, 30, 0.94) 0%, rgba(17, 24, 30, 0.66) 48%, rgba(17, 24, 30, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 24, 30, 0.9) 0%, rgba(17, 24, 30, 0.08) 62%);
}

.promo-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
}

.promo-hero-copy {
  max-width: 830px;
}

.promo-hero .section-kicker {
  color: #f4cf7b;
}

.promo-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 6vw, 5.65rem);
}

.promo-hero-copy p:not(.section-kicker) {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.promo-reserve-card,
.promo-line-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.promo-reserve-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.promo-reserve-card span,
.promo-line-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.promo-reserve-card strong {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.promo-reserve-card p {
  margin: 0;
  color: var(--muted);
}

.promo-price {
  padding: 13px 14px;
  border-radius: 8px;
  background: #edf3f1;
  color: var(--teal);
  font-weight: 800;
}

.promo-countdown-band {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  padding-bottom: clamp(46px, 7vw, 82px);
}

.promo-countdown-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.promo-countdown-panel h2 {
  margin-bottom: 8px;
}

.promo-countdown-panel p {
  margin: 0;
  color: var(--muted);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.countdown-grid div {
  display: grid;
  min-height: 118px;
  place-items: center;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
}

.countdown-grid strong {
  color: var(--teal);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1;
}

.countdown-grid span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.promo-details {
  padding-top: 0;
}

.promo-details-grid,
.promo-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.promo-details-grid .check-list {
  margin-top: 24px;
}

.promo-gallery-stack {
  display: grid;
  grid-template-columns: 0.88fr 1fr;
  gap: 12px;
  align-items: end;
}

.promo-gallery-stack img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.promo-gallery-stack img:nth-child(2) {
  aspect-ratio: 4 / 3;
}

.promo-contact-grid p {
  color: var(--muted);
  font-size: 1.06rem;
}

.promo-line-card {
  text-align: center;
}

.promo-line-card svg {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  color: var(--teal);
}

.promo-line-card strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.promo-line-card > a:not(.button) {
  color: var(--teal);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-panel,
.schedule-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.detail-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.check-list li::after {
  position: absolute;
  left: 5px;
  top: 0.62em;
  width: 6px;
  height: 3px;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg);
}

.schedule-block {
  margin-top: clamp(34px, 6vw, 64px);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.schedule-grid h3 {
  margin-top: 8px;
}

.schedule-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.registrations-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(31, 48, 73, 0.08);
}

.registrations-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.registrations-table th,
.registrations-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.registrations-table th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.registrations-table tr:last-child td {
  border-bottom: 0;
}

.registration-status {
  display: inline-flex;
  border-radius: 7px;
  background: #eaf4fb;
  color: #19558f;
  font-weight: 800;
  padding: 0.32rem 0.55rem;
}

.registration-status.registered {
  background: #eaf4fb;
  color: #19558f;
}

.registration-status.callback {
  background: #f1edff;
  color: #5f3fc4;
}

.registration-status.pending {
  background: #fff7e8;
  color: #9a5b00;
}

.registration-status.paid {
  background: #eaf7ef;
  color: #236247;
}

.registration-status.cancelled {
  background: #fff0ef;
  color: #9e2f24;
}

.registrations-empty {
  margin: 0;
  color: var(--muted);
  padding: 18px;
}

.gallery-section {
  background: var(--paper);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.compact-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.image-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 32, 38, 0.04);
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d8dee2;
}

.image-gallery figcaption {
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.split-grid p {
  color: var(--muted);
  font-size: 1.05rem;
}

.document-list {
  display: grid;
  gap: 12px;
}

.document-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.document-list a:hover,
.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.course-card,
.document-list a {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.steps span {
  grid-row: span 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
}

.steps strong {
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.signup-payment {
  background: var(--white);
}

.signup-payment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.application-panel,
.payment-panel {
  min-height: 100%;
}

.application-panel h2,
.payment-panel h2 {
  margin-bottom: 22px;
}

.payment-panel {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf3f1;
}

.bank-panel {
  display: grid;
  gap: 8px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.bank-panel p,
.bank-panel span {
  margin: 0;
  color: var(--muted);
}

.bank-panel strong {
  font-size: 1.22rem;
}

.site-footer {
  padding: 34px 0;
  color: var(--white);
  background: var(--charcoal);
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-panel > strong {
  font-size: 1.08rem;
}

.contact-panel a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 700;
}

.contact-panel svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.footer-actions {
  justify-content: flex-end;
}

.footer-actions a {
  color: var(--white);
}

.line-greeting {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 25;
  display: grid;
  width: min(170px, calc(100vw - 28px));
  overflow: visible;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 18px 28px rgba(23, 32, 38, 0.22));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.line-greeting:hover {
  transform: translateY(-4px);
}

.line-greeting img {
  width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.line-greeting span {
  display: block;
  margin-top: -8px;
  padding: 9px 12px 11px;
  border-radius: 8px;
  background: #7b5cff;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 1040px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estimate-hero-grid,
  .promo-hero-grid,
  .promo-countdown-panel,
  .promo-details-grid,
  .promo-contact-grid,
  .estimate-proof-grid {
    grid-template-columns: 1fr;
  }

  .estimate-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcome-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 18px;
  }

  .brand small {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-menu {
    display: grid;
  }

  .nav-submenu {
    position: static;
    width: 100%;
    margin-top: 4px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-submenu a {
    padding: 8px 12px;
    color: var(--muted);
  }

  .hero {
    min-height: 88vh;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 30, 0.9) 0%, rgba(17, 24, 30, 0.44) 100%);
  }

  .hero-content {
    margin-bottom: 46px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intro-grid,
  .detail-hero,
  .estimate-hero-grid,
  .promo-hero-grid,
  .promo-countdown-panel,
  .promo-details-grid,
  .promo-contact-grid,
  .estimate-proof-grid,
  .estimate-cta-panel,
  .payment-grid,
  .split-grid,
  .register-grid,
  .signup-payment-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .payment-panel {
    position: static;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid,
  .schedule-grid,
  .video-grid,
  .image-gallery,
  .estimate-highlights,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .estimate-hero {
    min-height: 0;
    padding-top: 58px;
  }

  .promo-hero {
    min-height: 0;
    padding-top: 58px;
  }

  .estimate-hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 30, 0.94) 0%, rgba(17, 24, 30, 0.66) 100%);
  }

  .promo-hero-shade {
    background: linear-gradient(0deg, rgba(17, 24, 30, 0.95) 0%, rgba(17, 24, 30, 0.64) 100%);
  }

  .estimate-highlight-band {
    margin-top: 0;
    padding-top: 18px;
  }

  .promo-countdown-band {
    margin-top: 0;
    padding-top: 18px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-gallery-stack {
    grid-template-columns: 1fr;
  }

  .estimate-highlights div,
  .outcome-grid article {
    min-height: 0;
  }

  .estimate-cta-panel {
    align-items: stretch;
  }

  .course-card {
    min-height: 0;
  }

  .footer-actions {
    justify-content: flex-start;
  }
}
