:root {
  color-scheme: dark;
  --bg: #050000;
  --surface: #100405;
  --surface-2: #1b0608;
  --purple: #d9162f;
  --purple-soft: #ff7887;
  --gold: #ffd76c;
  --gold-deep: #b87405;
  --red: #ff1735;
  --text: #fff8eb;
  --muted: #cfbfc0;
  --border: rgba(255, 202, 68, .34);
  --shadow: 0 22px 60px rgba(0, 0, 0, .58);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans Thai", "Tahoma", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(163, 0, 22, .16), transparent 34rem),
    radial-gradient(circle at 90% 25%, rgba(185, 121, 25, .08), transparent 34rem),
    var(--bg);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #17100a;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 202, 68, .2);
  background: rgba(5, 0, 1, .96);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 102px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 54px 44px;
  align-items: center;
  gap: 0 24px;
}
.brand { grid-column: 2; grid-row: 1; justify-self: center; }
.brand-slot {
  display: block;
  width: 122px;
  aspect-ratio: 600 / 178;
  background: url("../images/logo.webp") center / contain no-repeat;
}
.site-nav { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 5px; border-top: 1px solid rgba(255,255,255,.045); }
.site-nav a { position: relative; padding: 9px 13px; border-radius: 0; color: #d7caca; font-size: .94rem; font-weight: 750; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgba(165, 0, 22, .16); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 2px; background: var(--red); box-shadow: 0 0 10px var(--red); }
.header-actions { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: 9px; }
.menu-toggle { display: none; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); padding: 9px 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; border-color: #ff6c79; background: linear-gradient(180deg, #ff394d, #c3001b 65%, #8d0013); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 24px rgba(255, 23, 53, .25); }
.btn-secondary { color: var(--gold); border-color: rgba(255, 215, 108, .72); background: linear-gradient(180deg, rgba(95, 61, 0, .26), rgba(22, 10, 0, .6)); box-shadow: inset 0 0 12px rgba(255, 215, 108, .06); }
.btn-danger { color: #fff; border-color: #ff7a86; background: linear-gradient(180deg, #ff394d, #c3001b 65%, #8d0013); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 0 24px rgba(255, 23, 53, .25); }

.hero { padding: 0; overflow: clip; border-bottom: 1px solid rgba(255, 23, 53, .18); }
.hero > .container { width: 100%; max-width: none; }
.hero-picture { position: relative; background: #030000; }
.hero-picture img { width: 100%; height: auto; max-height: 680px; object-fit: cover; object-position: center; }
.hero-summary { border-bottom: 1px solid rgba(255, 23, 53, .18); background: linear-gradient(110deg, #090001, #280006 58%, #090001); }
.hero-summary-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 30px 0; }
.hero-summary h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.08; }
.hero-summary h1 span { color: var(--gold); }
.hero-summary p { max-width: 740px; margin: 10px 0 0; color: var(--muted); }
.hero-grid { position: relative; min-height: 520px; }
.hero h1, .page-hero h1 { margin: 0; font-size: clamp(2.35rem, 4.5vw, 4.7rem); line-height: 1.05; letter-spacing: -.04em; }
.hero h1 span, .page-hero h1 span { color: var(--gold); text-shadow: 0 0 35px rgba(247, 199, 106, .22); }
.hero-copy { position: absolute; z-index: 3; top: 0; bottom: 0; left: max(32px, calc((100% - 1160px) / 2)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 650px; padding: 40px 0; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 22px 0 24px; color: #eadbdb; font-size: 1.08rem; text-shadow: 0 2px 8px #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: #d9cee2; font-size: .92rem; }
.trust-line span::before { content: "✦"; margin-right: 8px; color: var(--gold); }
.hero-media { position: absolute; inset: 0; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4,0,0,.98) 0%, rgba(15,0,2,.82) 35%, rgba(75,0,10,.24) 66%, rgba(0,0,0,.2)); }
.hero-slot {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 76% 38%, rgba(255, 25, 50, .28), transparent 16rem),
    linear-gradient(115deg, #070000 0%, #250005 48%, #57000c 72%, #160002 100%);
  box-shadow: inset 0 0 90px rgba(0,0,0,.72);
}
.age-badge { position: absolute; z-index: 2; right: max(32px, calc((100% - 1160px) / 2)); bottom: 22px; display: grid; place-items: center; width: 58px; height: 58px; border: 2px solid var(--gold); border-radius: 50%; background: rgba(5, 0, 0, .92); color: var(--gold); font-weight: 900; }

.notice-bar { margin-top: 0; padding: 8px 0; background: #030000; }
.notice-inner { display: flex; align-items: center; gap: 14px; padding: 9px 14px; border: 1px solid rgba(255, 23, 53, .55); border-radius: 10px; background: linear-gradient(90deg, rgba(112, 0, 15, .35), rgba(31, 0, 4, .82)); color: #eadada; box-shadow: inset 0 0 18px rgba(255,0,31,.08); }
.notice-inner strong { padding: 3px 10px; border: 1px solid rgba(255, 89, 107, .45); border-radius: 6px; color: #ff9aa5; white-space: nowrap; }

.section { padding: 52px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 22px; padding: 16px 20px; border: 1px solid rgba(255, 202, 68, .12); border-radius: 10px; background: linear-gradient(90deg, rgba(116, 0, 15, .48), rgba(131, 82, 0, .25), rgba(0,0,0,.08)); }
.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(1.85rem, 3.5vw, 3rem); line-height: 1.2; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.explore-card { position: relative; min-height: 300px; overflow: hidden; border: 1px solid rgba(255, 202, 68, .26); border-radius: 12px; background: #0d0304; box-shadow: 0 12px 28px rgba(0,0,0,.45); }
.card-media-slot {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  background: #170507;
}
.explore-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(6, 4, 10, .96)); }
.explore-card::before { content: "HOT"; position: absolute; z-index: 2; top: 10px; right: 10px; padding: 2px 7px; border-radius: 999px; background: #d4001c; color: #fff; font-size: .65rem; font-weight: 900; box-shadow: 0 0 14px rgba(255,0,34,.42); }
.explore-card:hover .card-media-slot { transform: scale(1.035); filter: brightness(1.08); }
.explore-card .card-media-slot { transition: transform .3s ease, filter .3s ease; }
.explore-card h3 { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 14px; margin: 0; font-size: .98rem; }
.explore-card h3 span { float: right; color: var(--gold); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border: 1px solid rgba(255, 202, 68, .15); border-radius: 14px; background: linear-gradient(145deg, rgba(33, 4, 7, .94), rgba(8, 2, 3, .96)); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border: 1px solid var(--border); border-radius: 15px; background: rgba(247, 199, 106, .08); color: var(--gold); font-size: 1.3rem; }
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); }

.cta-panel { display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 30px; padding: 34px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(120deg, rgba(132, 0, 18, .38), rgba(83, 48, 0, .2)); box-shadow: var(--shadow); }
.cta-panel h2 { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.cta-panel p { margin: 0; color: var(--muted); }

.page-hero { padding: 58px 0 34px; border-bottom: 1px solid rgba(255,23,53,.15); background: radial-gradient(circle at 75% 20%, rgba(155,0,21,.2), transparent 28rem), linear-gradient(180deg, #160003, #050000); }
.page-hero .container {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  grid-template-rows: auto auto auto 1fr;
  align-items: center;
  gap: 0 42px;
}
.page-hero .container > .breadcrumb,
.page-hero .container > .eyebrow,
.page-hero .container > h1,
.page-hero .container > p { grid-column: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.page-hero .container > p:last-of-type { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.page-banner-slot {
  grid-column: 2;
  grid-row: 1 / span 4;
  width: 100%;
  aspect-ratio: var(--banner-ratio, 16 / 9);
  border: 1px solid rgba(255, 202, 68, .34);
  border-radius: 14px;
  background-color: #160003;
  background-image: var(--banner-image);
  background-position: var(--banner-position, center);
  background-size: var(--banner-fit, cover);
  background-repeat: no-repeat;
  box-shadow: inset 0 0 45px rgba(0,0,0,.45), 0 14px 32px rgba(0,0,0,.38);
}
.page-hero--wide .container {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.page-hero--wide .container > .breadcrumb,
.page-hero--wide .container > .eyebrow,
.page-hero--wide .container > h1,
.page-hero--wide .container > p { grid-column: 1; }
.page-hero--wide .page-banner-slot {
  grid-column: 1;
  grid-row: auto;
  margin-top: 30px;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: #bcaec8; font-size: .92rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--gold); }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.content-card { padding: 34px; border: 1px solid rgba(255, 202, 68, .16); border-radius: var(--radius); background: rgba(15, 3, 4, .92); }
.content-card + .content-card { margin-top: 20px; }
.content-card h2 { margin-top: 0; font-size: clamp(1.5rem, 2.5vw, 2.15rem); }
.content-card h3 { margin-top: 28px; color: var(--gold); }
.content-card p, .content-card li { color: var(--muted); }
.content-card a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.side-card { position: sticky; top: 128px; padding: 26px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(145deg, rgba(41, 4, 8, .96), rgba(10, 2, 3, .98)); }
.side-card h2 { margin-top: 0; }
.side-card .btn { width: 100%; margin-top: 10px; }
.mini-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; color: var(--muted); }
.mini-list li::before { content: "✓"; margin-right: 9px; color: var(--gold); }

.phone-shell { max-width: 720px; margin: 0 auto; }
.phone-form { padding: 34px; border: 1px solid var(--border); border-radius: 16px; background: rgba(15, 3, 4, .94); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 750; }
.form-group input[type="tel"] { width: 100%; min-height: 54px; padding: 12px 16px; border: 1px solid rgba(255, 202, 68, .34); border-radius: 10px; background: #090102; color: #fff; }
.checkbox-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--muted); }
.checkbox-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple); }
.form-error { min-height: 26px; margin: 8px 0 0; color: #ff9aa5; }
.privacy-note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--gold); background: rgba(247, 199, 106, .06); color: var(--muted); font-size: .92rem; }
.phone-form .btn { width: 100%; }

.steps { display: grid; gap: 16px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; padding: 20px 20px 20px 72px; border: 1px solid rgba(255, 202, 68, .14); border-radius: 12px; background: rgba(120,0,16,.055); }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #211407; font-weight: 900; }

.site-footer { margin-top: 52px; border-top: 1px solid rgba(255, 23, 53, .24); background: #030000; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 42px; padding: 54px 0 34px; }
.footer-brand-slot {
  display: block;
  width: 220px;
  aspect-ratio: 600 / 178;
  margin-bottom: 18px;
  background: url("../images/logo.webp") center / contain no-repeat;
}
.footer-brand p { max-width: 480px; color: var(--muted); }
.footer-col h2 { margin-top: 0; font-size: 1rem; color: var(--gold); }
.footer-links { display: grid; gap: 8px; padding: 0; list-style: none; color: #d6ccdc; }
.footer-links a:hover { color: var(--gold); }
.responsible { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.06); color: #afa3ba; font-size: .88rem; }
.copyright { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.06); color: #887d91; font-size: .84rem; }

@media (max-width: 1060px) {
  .header-inner { min-height: 82px; display: flex; align-items: center; gap: 14px; }
  .brand { grid-column: auto; grid-row: auto; justify-self: auto; }
  .brand-slot { width: 145px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { position: absolute; top: 82px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: #0c0912; box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .header-actions { grid-column: auto; grid-row: auto; justify-self: auto; }
  .header-actions .btn-secondary { display: none; }
  .hero-grid { min-height: 580px; }
  .hero-copy { left: 50%; right: auto; width: min(760px, calc(100% - 48px)); max-width: none; transform: translateX(-50%); align-items: center; text-align: center; }
  .hero-copy > p:not(.eyebrow) { margin-inline: auto; }
  .hero-actions, .trust-line { justify-content: center; }
  .hero-slot { min-height: 580px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .explore-card, .card-media-slot { min-height: 260px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1180px); }
  .header-inner { min-height: 70px; gap: 10px; }
  .brand-slot { width: 110px; }
  .site-nav { top: 70px; }
  .header-actions .btn { min-height: 40px; padding: 8px 14px; font-size: .88rem; }
  .hero { padding-top: 0; }
  .hero-picture img { min-height: 220px; object-fit: cover; object-position: 62% center; }
  .hero-summary-inner { grid-template-columns: 1fr; padding: 24px 0; }
  .hero-summary .hero-actions .btn { flex: 1 1 180px; }
  .hero-grid, .hero-slot { min-height: 610px; }
  .hero-copy { width: calc(100% - 30px); padding: 42px 0 70px; }
  .hero h1 { font-size: clamp(2.15rem, 11vw, 3.3rem); }
  .hero-slot { border-radius: 0; }
  .age-badge { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .notice-inner { align-items: flex-start; }
  .section { padding: 54px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .feature-grid, .content-layout, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-card, .card-media-slot { min-height: 210px; }
  .cta-panel { grid-template-columns: 1fr; padding: 28px; }
  .side-card { position: static; }
  .content-card, .phone-form { padding: 24px; }
  .page-hero { padding-top: 46px; }
  .page-hero .container { grid-template-columns: 1fr; grid-template-rows: auto; gap: 0; }
  .page-banner-slot { grid-column: 1; grid-row: auto; margin-top: 28px; }
}

@media (max-width: 430px) {
  .header-actions .btn-danger { display: none; }
  .hero-actions .btn { width: 100%; }
  .card-grid { grid-template-columns: 1fr; }
  .explore-card, .card-media-slot { min-height: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
