@font-face {
  font-family: 'Noto Thai'; src: url('fonts/notosansthai.ttf') format('truetype');
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: 'Noto Serif Thai'; src: url('fonts/notoserifthai.ttf') format('truetype');
  font-weight: 100 900; font-display: swap;
}

:root {
  --night: #20162d;
  --deep: #170f22;
  --ink: #251b30;
  --plum: #654c7c;
  --muted: #5f5468;
  --gold: #e9c894;
  --pale: #e8ddec;
  --paper: #fbf8f3;
  --line: #e1d8e2;
  --serif: Georgia, 'Noto Serif Thai', 'Leelawadee UI', serif;
  --sans: 'Noto Thai', system-ui, 'Leelawadee UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid #a47ad1; outline-offset: 4px;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.2; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
:lang(th) h1, :lang(th) h2 { font-family: 'Noto Serif Thai', 'Leelawadee UI', serif; line-height: 1.3; }
.wrap { width: min(1280px, calc(100% - clamp(2rem, 9.7vw, 9.5rem))); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: -.18em; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; inset: .5rem auto auto .5rem; padding: .75rem; background: white; z-index: 5; }

.masthead { background: var(--night); color: #efe8f1; border-bottom: 1px solid #ffffff16; position: relative; z-index: 2; }
.masthead-inner { display: flex; min-height: 82px; gap: clamp(1rem, 3.1vw, 3rem); align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 1rem; align-items: center; text-decoration: none; color: #fbf7f1; flex: 0 0 auto; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border: 1px solid #c8a873; transform: rotate(45deg); margin: .3rem; color: var(--gold); }
.brand-mark span { transform: rotate(-45deg); font: 500 .82rem/1 Georgia, serif; letter-spacing: -.035em; }
.brand-words { display: grid; gap: .27rem; font: 600 .72rem/1.2 var(--sans); letter-spacing: .16em; }
.brand-words span + span { color: var(--gold); letter-spacing: .28em; }
.primary-nav, .header-actions { display: flex; align-items: center; }
.primary-nav { gap: clamp(1rem, 2.3vw, 2.1rem); justify-content: center; }
.primary-nav a, .mobile-menu a { text-decoration: none; white-space: nowrap; font-size: .95rem; }
.primary-nav a:hover, .primary-nav .nav-current, .mobile-menu a:hover, .mobile-menu .nav-current { color: var(--gold); }
.header-actions { gap: 1.2rem; }
.language { display: inline-flex; align-items: center; gap: .42rem; text-decoration: none; font-size: .91rem; white-space: nowrap; }
.language:hover, .hero-register:hover { color: var(--gold); }
.language .icon { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem; border: 1px solid transparent; border-radius: 4px; background: var(--gold); color: #281b32; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.42; }
.button:hover { background: #f7dba9; }
.header-quote { min-height: 41px; padding: .48rem .89rem; background: transparent; border-color: #b99a75; color: #f3d8ad; font-size: .875rem; white-space: nowrap; }
.header-quote:hover { background: #3c2c48; }
.button-ghost { background: transparent; color: #f5eff6; border-color: #9b8aa9; }
.button-ghost:hover { background: #443353; }
.button-dark { background: #412b56; color: #fff8ff; }
.button-dark:hover { background: #5d3e76; }
.line-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; max-width: 100%; padding: 8px 14px 8px 10px;
  border: 1px solid #c9b9ce; border-radius: 4px; background: #fffdfa; color: var(--ink);
  font-weight: 700; text-align: center; text-decoration: none; line-height: 1.42;
}
.line-button img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.line-button:hover { border-color: var(--plum); color: #412b56; }
.line-button:hover span { text-decoration: underline; text-underline-offset: .22em; }
.hero-actions, .contact-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem;
  width: min(100%, 24rem); align-items: stretch;
}
.messenger-button {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .5rem .65rem; border: 1px solid #ffffff47; border-radius: 4px;
  background: #294b42; color: #fff; font-weight: 650; line-height: 1.4; text-decoration: none;
}
.messenger-button.telegram { background: #29475d; }
.messenger-button .icon { width: 23px; height: 23px; color: #a4f3c9; }
.messenger-button.telegram .icon { color: #aadaff; }
.messenger-button:hover { background: #345e52; }
.messenger-button.telegram:hover { background: #355a74; }
.messenger-button small { display: block; font-size: .8125rem; font-weight: 500; }
.hero-actions .button, .contact-actions .button, .contact-panel .button { min-height: 58px; max-width: 100%; }
.mobile-menu { display: none; }

.hero { background: radial-gradient(ellipse at 86% 10%, #3b294d 0%, var(--night) 51%, var(--deep) 100%); color: #fcf7f4; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6.1rem); align-items: center; padding-block: clamp(3rem, 5.6vw, 5.5rem); }
.hero-copy { padding-block: .65rem 1.5rem; }
.eyebrow { color: var(--plum); font-weight: 700; font-size: .87rem; letter-spacing: .13em; }
:lang(th) .eyebrow { letter-spacing: .025em; }
.hero .eyebrow { display: flex; align-items: center; gap: .9rem; color: var(--gold); margin-bottom: 1.2rem; }
.hero .eyebrow::before { content: ''; width: 2.6rem; height: 1px; background: currentColor; flex: 0 0 auto; }
.hero h1 { font-size: clamp(3.45rem, 5.25vw, 5.25rem); line-height: 1.05; letter-spacing: -.043em; }
:lang(th) .hero h1 { font-size: clamp(2.65rem, 4.1vw, 4.35rem); line-height: 1.24; letter-spacing: -.04em; }
.hero h1 em { display: block; color: var(--gold); font-weight: 500; }
:lang(th) .hero h1 em { font-style: normal; }
.hero-lead { color: #e1d6e4; max-width: 35rem; margin-top: 1.55rem; font-size: clamp(1rem, 1.36vw, 1.20rem); line-height: 1.68; }
.hero-actions { margin-top: 2rem; }
.hero-register { display: inline-flex; align-items: center; gap: .55rem; color: #e7dce8; margin-top: 1.65rem; font-size: .9rem; text-underline-offset: .25em; text-decoration-color: #a58da2; }
.hero-register svg { color: var(--gold); }
.hero-photo { position: relative; margin: .35rem .85rem .85rem .25rem; }
.hero-photo::before { content: ''; position: absolute; inset: 13px -13px -13px 13px; border: 1px solid #bfa16b99; border-radius: 5px; }
.hero-image { position: relative; border-radius: 5px; overflow: hidden; isolation: isolate; background: #3e3255; }
.hero-image::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent, #140c1cbd); pointer-events: none; }
.hero-image img { width: 100%; height: clamp(22rem, 35.5vw, 33rem); object-fit: cover; object-position: center 60%; }
.hero-photo figcaption {
  position: absolute; inset: auto .75rem .75rem; z-index: 1;
  display: flex; align-items: flex-start; gap: .45rem; width: fit-content;
  max-width: calc(100% - 1.5rem); padding: .4rem .65rem; border-radius: 4px;
  background: #21182fed; color: #fff7ed; font-size: .88rem; line-height: 1.45;
}
.hero-photo figcaption .icon { margin-top: .13rem; color: var(--gold); }
.hero-photo figcaption small, .desk-photo figcaption { font-size: .85rem; line-height: 1.5; }
.hero-photo figcaption small { display: block; color: #eaddeb; }

.quick-facts { background: #f0e8f0; border-bottom: 1px solid #e2d7e3; }
.fact-grid { display: grid; grid-template-columns: 1fr 1.05fr 1fr; align-items: stretch; }
.fact-grid a { display: flex; gap: .9rem; align-items: center; padding: 1.24rem clamp(.7rem, 2.3vw, 2.1rem); text-decoration: none; }
.fact-grid a:first-child { padding-inline-start: 0; }
.fact-grid a + a { border-inline-start: 1px solid #dccfdc; }
.fact-grid a:hover strong { text-decoration: underline; text-underline-offset: .22em; }
.fact-grid small, .fact-grid strong { display: block; }
.fact-grid small { font-size: .85rem; color: var(--muted); }
.fact-grid strong { font-weight: 650; }
.fact-grid .icon { width: 1.5rem; height: 1.5rem; color: var(--plum); }

.block { padding-block: clamp(3rem, 6.2vw, 6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-head h2, .process h2 { margin-top: .4rem; }
.section-summary, .process-copy p:not(.eyebrow) { margin-top: .65rem; color: var(--muted); max-width: 46rem; }
.text-link, .reading a, .sources a, .related a { color: #563974; font-weight: 650; text-underline-offset: .23em; }
.text-link:hover, .reading a:hover, .sources a:hover, .related a:hover { color: #372447; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.9rem; }
.service-card { display: block; padding: clamp(1.1rem, 2vw, 1.8rem); border: 1px solid var(--line); border-radius: 5px; background: #fffdfa; text-decoration: none; }
.service-card:hover { border-color: #8e72a2; background: #fcf7ff; }
.service-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 4px; background: #eee5f3; color: #503567; margin-bottom: 1.1rem; }
.service-icon .icon { width: 1.4rem; height: 1.4rem; }
.service-card h3 { line-height: 1.35; font-size: 1.08rem; font-weight: 700; }
.service-card p { margin-top: .5rem; color: var(--muted); font-size: .95rem; }
.process { background: #f0e9f0; }
.process-grid, .faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6.5vw, 6rem); }
.process-copy .text-link, .faq-layout .text-link { display: inline-block; margin-top: .9rem; }
.desk-photo { margin-top: 1.5rem; }
.desk-photo img { width: 100%; height: auto; border-radius: 5px; }
.desk-photo figcaption { margin-top: .45rem; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: route-step; }
.steps li { position: relative; padding: 1.15rem 0 1.15rem 3.6rem; border-top: 1px solid #d8cadd; counter-increment: route-step; }
.steps li:last-child { border-bottom: 1px solid #d8cadd; }
.steps li::before { content: counter(route-step, decimal-leading-zero); position: absolute; inset: 1.15rem auto auto 0; color: #604678; font: 500 1.4rem/1.3 Georgia, serif; }
.steps h3 { font-size: 1.09rem; }
.steps p { color: var(--muted); margin-top: .3rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.13rem 0; font-weight: 650; cursor: pointer; list-style: none; display: flex; gap: 1.1rem; justify-content: space-between; align-items: start; }
.faq summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.faq summary span { position: relative; display: block; flex: 0 0 .95rem; height: 1rem; margin: .32rem .12rem 0 0; color: var(--plum); }
.faq summary span::before, .faq summary span::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: currentColor; }
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary span::after { transform: none; }
.faq p { color: var(--muted); margin: -.3rem 1.8rem 1rem 0; }
.contact-band { padding-block: clamp(2.5rem, 5vw, 4.5rem); background: #493657; color: #fbf7fc; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem); gap: 1.4rem 3rem; align-items: center; }
.contact-band p { margin-top: .6rem; color: #eee4f1; max-width: 47rem; }
.footer { background: var(--deep); color: #eee6f0; padding-block: 3.1rem 1.25rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.footer-grid p { margin-top: 1rem; color: #deccdf; }
.footer h2 { font: 700 1rem/1.5 var(--sans); color: var(--gold); margin-bottom: .7rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-block: .3rem; }
.footer li a { text-underline-offset: .18em; }
.footer-legal { border-top: 1px solid #ffffff2b; margin-top: 2.2rem; padding-top: 1rem; color: #d4c3d8; font-size: .87rem; }

.page-intro { padding-block: 1.2rem clamp(2.5rem, 5vw, 4.8rem); color: #fbf6fb; background: radial-gradient(ellipse at 92% 0%, #49305b, var(--night) 68%); }
.page-intro h1 { margin-top: 1.7rem; font-size: clamp(2.45rem, 4.6vw, 4.4rem); max-width: 61rem; overflow-wrap: anywhere; }
.page-intro p { margin-top: .85rem; max-width: 50rem; color: #e7dbe9; font-size: clamp(1rem, 1.55vw, 1.2rem); }
.page-intro .button { margin-top: 1.1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .3rem .65rem; margin: 0; padding: 0; list-style: none; color: #e2d2e8; font-size: .88rem; }
.breadcrumbs a { color: #f1d4a5; text-underline-offset: .21em; }
.breadcrumbs li + li::before { content: '/'; margin-right: .65rem; color: #d3b8dd; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 30%); gap: clamp(1.8rem, 6vw, 5.5rem); align-items: start; }
.reading { max-width: 49rem; }
.reading h2, .contact-panel h2 { font-size: clamp(1.5rem, 2.8vw, 2.35rem); }
.reading section + section, .reading > p + section { margin-top: 2rem; }
.reading section p { margin-top: .7rem; }
.reading > p { margin-top: 1rem; }
.related, .sources { padding: 1.25rem 1.35rem; background: #f2ebf3; border: 1px solid #e1d4e4; border-radius: 4px; }
.reading .related { margin-top: 2rem; }
.related h2, .sources h2 { font: 700 1.06rem/1.4 var(--sans); }
.related ul, .sources ul { margin: .75rem 0 0; padding-left: 1.1rem; }
.related li + li, .sources li + li { margin-top: .38rem; }
.fee-table { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.fee-table table { width: 100%; border-collapse: collapse; }
.fee-table caption { text-align: left; padding: .8rem 1rem; font-weight: 700; font-size: 1.08rem; background: #f0e7f1; }
.fee-table th, .fee-table td { text-align: left; padding: .7rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.fee-table td { width: 10rem; }
.fee-table thead th, .fee-table tfoot { background: #f7eff8; }
.fee-table tbody th { font-weight: 500; }
.fee-table tfoot { font-weight: 700; }
.price-amount { display: inline-grid; gap: .12rem; font-variant-numeric: tabular-nums; }
.price-amount b { color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.price-amount small, .price-scope { color: var(--muted); display: block; font-size: .84rem; font-weight: 400; line-height: 1.45; }
.price-scope { margin-top: .2rem; }
.price-intro { margin-bottom: .7rem; }
.budget { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .75rem 1.35rem; margin-bottom: 1.5rem; padding: 1.3rem; border: 1px solid #dfc7a4; border-radius: 5px; background: #f8efdd; }
.reading .budget h2 { font-size: clamp(1.32rem, 2.25vw, 1.95rem); }
.budget p { margin-top: .3rem; color: var(--muted); }
.budget .price-amount b { font-family: Georgia, serif; font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 500; line-height: 1.15; }
.quote-note { padding: .75rem 1rem; border-inline-start: 2px solid #c29b63; background: #f8efdd; color: var(--muted); font-size: .94rem; line-height: 1.6; }
.budget .quote-note { grid-column: 1 / -1; margin: 0; padding: .75rem 0 0; border: 0; border-top: 1px solid #e2cfb5; background: transparent; }
.reading .exchange-note { margin-top: 1.65rem; padding: 1.15rem 1.25rem; border-inline-start: 3px solid #9c7cab; background: #f2ebf3; }
.reading .exchange-note h2 { font-size: 1.3rem; }
.exchange-note ul { padding-inline-start: 1.2rem; margin: .65rem 0 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.85rem, 3vw, 2rem); }
.contact-panel {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
  padding: clamp(1.1rem, 3vw, 2.3rem); border: 1px solid var(--line);
  border-radius: 5px; background: #fffdfa;
}
.contact-panel h2 + p { margin-top: .65rem; color: var(--muted); }
.contact-address { margin-top: auto; padding-top: 1rem; font-weight: 650; overflow-wrap: anywhere; }
.contact-address a, .contact-extra p a { color: #563974; font-weight: 650; text-underline-offset: .22em; }
.contact-panel > a { margin-top: 1.1rem; }
.contact-extra { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); }
.contact-extra h2 { font: 650 1.1rem/1.5 var(--sans); color: var(--ink); }
.contact-extra .contact-actions { margin: .75rem 0 1rem; }

@media (max-width: 1050px) {
  .masthead-inner { gap: 1.2rem; }
  .primary-nav { gap: 1.15rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 1.9rem; }
}
@media (max-width: 920px) {
  .primary-nav, .header-quote { display: none; }
  .masthead-inner { min-height: 68px; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; border: 1px solid #9e85a7; border-radius: 4px; }
  .mobile-menu nav { position: absolute; inset: 100% 0 auto; padding: .6rem max(1rem, 5vw) .85rem; display: grid; background: var(--night); border-top: 1px solid #987aa282; }
  .mobile-menu a { padding: .6rem 0; }
  .hero-grid { padding-block: 3rem 3.4rem; }
  .hero h1 { font-size: clamp(2.7rem, 7vw, 4.5rem); }
  .hero-image img { height: clamp(19rem, 45vw, 28rem); }
  .fact-grid a { padding-block: 1rem; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 63px; }
  .brand { gap: .55rem; }
  .brand-mark { width: 1.7rem; height: 1.7rem; }
  .brand-words { font-size: .63rem; letter-spacing: .10em; }
  .header-actions { gap: .65rem; }
  .hero-grid, .process-grid, .faq-layout, .contact-grid, .reading-grid, .band-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 2.25rem 2.1rem; gap: 1.55rem; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { margin-bottom: .78rem; }
  .hero h1 { font-size: clamp(2.55rem, 8.1vw, 4.2rem); }
  :lang(th) .hero h1 { font-size: clamp(2.3rem, 7.65vw, 3.45rem); }
  .hero-lead { margin-top: .9rem; }
  .hero-actions { margin-top: 1.23rem; }
  .hero-register { margin-top: 1rem; }
  .hero-photo { margin-inline: 0 .72rem; }
  .hero-image img { height: clamp(15rem, 62vw, 24rem); object-position: center 62%; }
  .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-grid a { padding: .8rem 0; }
  .fact-grid a + a { border-inline-start: 0; border-top: 1px solid #dccfdc; }
  .section-head { align-items: start; flex-direction: column; gap: .5rem; }
  .service-grid { gap: .65rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.4rem .8rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer li a { overflow-wrap: anywhere; }
  .fee-table td { width: 38%; }
}
@media (max-width: 520px) {
  .hero-actions .line-button, .contact-actions .line-button { gap: .4rem; padding-inline: .5rem; }
  .hero-actions .line-button img, .contact-actions .line-button img { width: 30px; height: 30px; flex-basis: 30px; }
  :lang(th) .page-intro h1 { font-size: clamp(1.9rem, 6.3vw, 2.25rem); }
  .budget { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  .masthead-inner { gap: .4rem; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-mark { flex: 0 0 auto; width: 1.48rem; height: 1.48rem; }
  .brand-words { font-size: .56rem; }
  .language { gap: .32rem; font-size: .81rem; }
  .page-intro h1 { font-size: 2.12rem; }
  .hero-actions, .contact-actions { gap: .55rem; }
  .hero-actions .button, .contact-actions .button { padding-inline: .75rem; }
  .header-actions { gap: .45rem; }
  .service-grid { grid-template-columns: minmax(0, 1fr); }
  .fee-table th, .fee-table td { padding-inline: .5rem; }
  .budget { padding: 1rem; }
}
