:root {
  --cream: #fff7e8;
  --paper: #fffdf7;
  --brown: #5a3416;
  --brown-soft: #8a5a32;
  --orange: #f39a1e;
  --orange-dark: #c96a0a;
  --gold: #ffd447;
  --line: #ecd9b8;
  --sky: #8cc7ee;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
a { color: var(--orange-dark); }
img { max-width: 100%; display: block; }

.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--brown);
  border-bottom: 4px solid var(--gold);
}
.top .in {
  max-width: 1080px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: "Mitr", sans-serif; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.top nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: #ffe9c2; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: 15px; }
.top nav a:hover, .top nav a.on { background: #ffffff1f; color: #fff; }

.hero { position: relative; overflow: hidden; }
.hero > img { width: 100%; height: min(62vw, 560px); object-fit: cover; }
.hero .card {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(92%, 640px);
  background: rgba(74, 44, 18, 0.9); border: 3px solid var(--gold); border-radius: 18px;
  padding: 18px 22px; color: #fff; text-align: center;
}
.hero .card img { width: 150px; margin: -80px auto 4px; filter: drop-shadow(0 4px 6px #0006); }
.hero h1 { font-family: "Mitr", sans-serif; font-weight: 500; font-size: 26px; margin: 0 0 4px; }
.hero p { margin: 0; color: #ffe9c2; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 40px 16px; }
.sec-title { font-family: "Mitr", sans-serif; font-weight: 500; font-size: 26px; text-align: center; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.box {
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px;
  padding: 0 0 18px; overflow: hidden;
}
.box img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.box h3 { font-family: "Mitr", sans-serif; font-weight: 500; margin: 14px 18px 4px; font-size: 20px; }
.box p { margin: 0 18px; color: var(--brown-soft); }
.badge {
  display: inline-block; background: var(--orange); color: #fff; font-family: "Mitr", sans-serif;
  padding: 6px 16px; border-radius: 999px; margin-top: 12px;
}
.contact {
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px;
  padding: 24px; text-align: center;
}
.contact .mail { font-family: "Mitr", sans-serif; font-size: 22px; }

.doc {
  max-width: 820px; margin: 28px auto; padding: 28px 24px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 18px;
}
.doc h1 { font-family: "Mitr", sans-serif; font-weight: 500; font-size: 28px; margin: 0 0 12px; line-height: 1.4; }
.doc h2 { font-family: "Mitr", sans-serif; font-weight: 500; font-size: 21px; margin: 30px 0 8px; padding-top: 14px; border-top: 1px dashed var(--line); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #fbecd2; }
.doc .meta { background: #fbecd2; border-radius: 12px; padding: 12px 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 12px 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 2px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: #fff;
  font-family: "Mitr", sans-serif; display: flex; align-items: center; justify-content: center;
}
.note { background: #fff1d6; border-left: 5px solid var(--orange); padding: 10px 14px; border-radius: 0; }

footer { background: var(--brown); color: #ffe9c2; text-align: center; padding: 22px 16px; font-size: 14px; }
footer a { color: #fff; margin: 0 8px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { position: static; }
  .hero > img { height: 420px; }
  .hero .card img { width: 110px; margin-top: -60px; }
  .hero h1 { font-size: 21px; }
  .top nav { margin-left: 0; width: 100%; }
  .doc { margin: 16px; padding: 20px 16px; }
}
