/* บริษัท เจพีเอส พาวเวอร์ เทค จำกัด — สไตล์ชีตหลัก
   แนวคิด: ลูกถ้วยฉนวนพอร์ซเลนสีน้ำตาลตัดกับท้องฟ้า ยิ่งแรงดันสูง พวงลูกถ้วยยิ่งยาว
   จำนวนลูกถ้วยจึงใช้บอกระดับแรงดัน แรงสูง แรงกลาง แรงต่ำ และเป็นเครื่องหมายใต้หัวข้อ
   สี: น้ำตาลเคลือบพอร์ซเลน ฟ้าท้องฟ้า ขาวเมฆ และเหลืองป้ายเตือนเป็นจุดเน้นเล็ก ๆ */

:root {
  --cloud: #f7fafb;
  --sky: #dbeaf2;
  --sky-deep: #b7d3e2;
  --white: #ffffff;
  --porcelain: #55291a;      /* น้ำตาลลูกถ้วย: สีหลัก */
  --glaze: #8b4a2b;
  --glaze-hot: #c98a5e;
  --link: #7a3b1e;
  --lattice: #5d6b76;        /* เทาโครงเหล็กเสาส่ง */
  --ink: #261912;
  --muted: #5a6670;
  --rule: #d2dfe6;
  --cream: #f4e7dc;          /* ตัวหนังสือบนพื้นน้ำตาล */
  --bolt: #f2c200;           /* เหลืองป้ายเตือน */

  --display: "Taviraj", "Noto Serif Thai", "Noto Sans Thai", "Leelawadee UI", Tahoma, serif;
  --body: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;

  --s--1: 0.87rem;
  --s-0: 1rem;
  --s-1: 1.17rem;
  --s-2: 1.45rem;
  --s-3: 1.85rem;
  --s-4: 2.3rem;
  --s-5: 2.9rem;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 72rem;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 106%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--cloud); color: var(--ink);
  font-family: var(--body); font-size: var(--s-0); line-height: 1.85;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--bolt); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.5; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(var(--s-3), 4.2vw, var(--s-5)); line-height: 1.4; }
h2 { font-size: clamp(var(--s-2), 3vw, var(--s-4)); }
h3 { font-size: var(--s-1); font-weight: 600; line-height: 1.55; }

p { margin: 0 0 1em; max-width: 40em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.nw { white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--porcelain); color: #fff; padding: 0.6em 1em; z-index: 60; }
.skip:focus { left: 0; }

/* ท้องฟ้ากับสายส่ง: ใช้เป็นพื้นสำรองเมื่อภาพโหลดไม่ขึ้น */
.skybg {
  background:
    linear-gradient(172deg, transparent 0 30%, rgba(85,41,26,.55) 30% 30.5%, transparent 30.5% 100%),
    linear-gradient(175deg, transparent 0 46%, rgba(85,41,26,.45) 46% 46.45%, transparent 46.45% 100%),
    linear-gradient(178deg, transparent 0 60%, rgba(85,41,26,.35) 60% 60.4%, transparent 60.4% 100%),
    linear-gradient(180deg, #8fbdd6 0%, #c9e0ec 60%, #e9f3f8 100%);
}

/* พวงลูกถ้วยฉนวน */
.ins { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 0.35rem 0; }
.ins::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: var(--lattice); border-radius: 2px; }
.ins i { position: relative; display: block; width: 1.7rem; height: 0.5rem; border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%; background: linear-gradient(180deg, var(--glaze-hot) 0%, var(--glaze) 40%, var(--porcelain) 100%); }
/* แบบแนวนอน: เครื่องหมายใต้หัวข้อ */
.ins--row { flex-direction: row; gap: 2px; padding: 0 0.5rem 0 0.35rem; margin-top: 0.75rem; display: flex; width: max-content; }
.ins--row::before { top: 50%; bottom: auto; left: 0; right: -3.2rem; width: auto; height: 2px; margin: -1px 0 0; }
.ins--row i { width: 0.42rem; height: 1.15rem; border-radius: 45% 50% 50% 45% / 30% 70% 70% 30%; background: linear-gradient(90deg, var(--porcelain) 0%, var(--glaze) 55%, var(--glaze-hot) 100%); }
.band--porcelain .ins i, .page-head .ins i { background: linear-gradient(90deg, #e9c9a8, #f4e7dc); }
.band--porcelain .ins::before, .page-head .ins::before { background: rgba(244,231,220,.6); }

/* ---------- ส่วนหัว ---------- */
.site-head { background: var(--white); border-bottom: 3px solid var(--porcelain); position: sticky; top: 0; z-index: 30; }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.6rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 2.5rem; height: 2.9rem; flex: none; }
.brand__name { display: block; font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--porcelain); }
.brand__legal { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }

.nav ul { list-style: none; display: flex; gap: 0.1rem; }
.nav a {
  display: block; padding: 0.4em 0.8em; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem;
}
.nav a:hover { background: var(--sky); }
.nav a[aria-current="page"] { background: var(--porcelain); color: #fff; }

.nav-toggle {
  display: none; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--white); color: var(--porcelain); border: 2px solid var(--porcelain); border-radius: 6px; padding: 0.2em 1em;
}
@media (max-width: 70rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 3px solid var(--porcelain); padding: 0.6rem var(--gutter) 1rem; }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0.3rem; }
  .nav a { padding: 0.6em 1em; }
}
@media (max-width: 36rem) { .brand__legal { display: none; } .brand__name { font-size: 1.1rem; } }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.4;
  padding: 0.75em 1.4em; border-radius: 6px; cursor: pointer; text-decoration: none;
  background: var(--porcelain); color: #fff; border: 2px solid var(--porcelain);
}
.btn:hover { background: var(--glaze); border-color: var(--glaze); color: #fff; }
.btn--line { background: transparent; color: var(--porcelain); }
.btn--line:hover { background: var(--porcelain); border-color: var(--porcelain); color: #fff; }
.btn--bolt { background: var(--bolt); border-color: var(--bolt); color: var(--ink); }
.btn--bolt:hover { background: #ffd93b; border-color: #ffd93b; color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn--ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--porcelain); }
.band--porcelain .btn--bolt { color: var(--ink); }
.band--porcelain .btn--ghost { color: var(--cream); }
.band--porcelain .btn--ghost:hover { color: var(--porcelain); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* ---------- แบนเนอร์หน้าแรก ---------- */
.hero { position: relative; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero__media { position: relative; height: clamp(17rem, 44vw, 30rem); overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(247,250,251,.92)); }
.hero__credit { position: absolute; z-index: 2; right: 0.7rem; top: 0.6rem; font-size: 0.72rem; line-height: 1.5; color: #fff; background: rgba(38,25,18,.6); padding: 0.1em 0.7em; border-radius: 999px; }
.hero__credit a { color: inherit; }
.hero__grid { position: relative; z-index: 1; margin-top: clamp(-9rem, -14vw, -4.5rem); display: grid; gap: clamp(1.2rem, 3vw, 2rem); grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); align-items: end; }
@media (max-width: 58rem) { .hero__grid { grid-template-columns: 1fr; } }
.hero__card { background: var(--white); border-top: 7px solid var(--porcelain); border-radius: 0 0 var(--radius) var(--radius); padding: clamp(1.3rem, 3.4vw, 2.4rem); box-shadow: 0 1.2rem 2.6rem rgba(38,25,18,.18); }
.hero__card h1 { font-size: clamp(1.6rem, 4.2vw, var(--s-5)); }
.hero__place { font-weight: 700; color: var(--glaze); letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.hero__lead { font-size: var(--s-1); line-height: 1.8; color: var(--muted); margin-top: 1.1rem; }
.hero__phones { margin-top: 1.2rem; font-size: 0.97rem; color: var(--muted); }
.hero__phones a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.hero__phones a:hover { text-decoration: underline; }

.levels { list-style: none; display: grid; gap: 0.6rem; }
.levels a {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 0.8rem; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 0.55rem 1rem 0.55rem 0.8rem; text-decoration: none; color: var(--ink);
  box-shadow: 0 0.6rem 1.4rem rgba(38,25,18,.14); border-left: 5px solid var(--glaze);
}
.levels a:hover { background: var(--sky); }
.levels .ins { grid-row: span 2; justify-self: center; }
.levels .ins i { width: 1.35rem; height: 0.36rem; }
.levels b { font-family: var(--display); font-size: 1.15rem; line-height: 1.4; align-self: end; }
.levels small { color: var(--muted); font-size: var(--s--1); line-height: 1.4; align-self: start; }

/* ---------- แบนเนอร์หน้าใน ---------- */
.page-head { position: relative; overflow: hidden; color: #fff; background: var(--porcelain); }
.page-head__media { position: absolute; inset: 0; }
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(85,41,26,.95) 0%, rgba(85,41,26,.82) 50%, rgba(85,41,26,.3) 100%); }
.page-head__body { position: relative; z-index: 1; padding: clamp(2.6rem, 7vw, 4.6rem) 0; max-width: 40rem; }
.page-head__body p { font-size: var(--s-1); line-height: 1.8; margin-top: 1.1rem; color: var(--cream); }
.page-head__credit { position: absolute; z-index: 1; right: 0.9rem; bottom: 0.5rem; font-size: 0.72rem; color: #f3e6da; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
.page-head__credit a { color: inherit; }

/* ---------- ส่วนเนื้อหา ---------- */
.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band--white { background: var(--white); }
.band--sky { background: var(--sky); }
.band--porcelain { background: var(--porcelain); color: #fff; }
.band--porcelain p { color: var(--cream); }
.band--porcelain a { color: var(--bolt); }

.band__head { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); max-width: 44rem; }
.band__head p { margin-top: 1rem; color: var(--muted); font-size: var(--s-1); line-height: 1.8; }
.band--porcelain .band__head p { color: var(--cream); }
.lead-gap { margin-top: 1.4rem; }

.split { display: grid; gap: clamp(1.8rem, 5vw, 4rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
.split--top { align-items: start; }
.split--flip { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
@media (max-width: 54rem) { .split, .split--flip { grid-template-columns: 1fr; } }

/* ---------- ภาพถ่าย ---------- */
.photo { margin: 0; }
.photo__frame { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.photo--tall .photo__frame { aspect-ratio: 4 / 5; }
.photo--wide .photo__frame { aspect-ratio: 16 / 10; }
.photo__frame img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.45rem; }
.photo figcaption a { color: inherit; }
.band--porcelain .photo figcaption { color: #d9bfae; }
img.is-missing { visibility: hidden; }

/* ---------- สามระดับแรงดัน ---------- */
.tiers { list-style: none; display: grid; gap: clamp(1.3rem, 3vw, 2rem); grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 60rem) { .tiers { grid-template-columns: 1fr; max-width: 34rem; } }
.tier { background: var(--white); border-radius: var(--radius); overflow: hidden; height: 100%; }
.band--white .tier { background: var(--cloud); border: 1px solid var(--rule); }
.tier .photo__frame { border-radius: 0; aspect-ratio: 16 / 10; }
.tier .photo figcaption { padding: 0 1.3rem; }
.tier__body { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0 1rem; padding: 0.9rem 1.3rem 1.5rem; }
.tier__body .ins { align-self: start; margin-top: 0.3rem; }
.tier__body h3 { font-size: var(--s-2); font-weight: 700; }
.tier__range { font-weight: 700; color: var(--glaze); font-size: 0.95rem; }
.tier__body p { color: var(--muted); margin-top: 0.4rem; }
.tier__body .more { display: inline-block; margin-top: 0.6rem; font-weight: 700; }

/* ---------- กลุ่มสินค้า ---------- */
.groups { list-style: none; counter-reset: gp; display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 58rem) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .groups { grid-template-columns: 1fr; } }
.groups li { counter-increment: gp; background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.4rem; border-top: 5px solid var(--glaze); }
.band--white .groups li { background: var(--cloud); }
.groups li::before { content: counter(gp, decimal-leading-zero); display: block; font-family: var(--display); font-weight: 700; font-size: var(--s-2); line-height: 1.2; color: var(--glaze-hot); margin-bottom: 0.3rem; }
.groups p { margin-top: 0.3rem; color: var(--muted); }

/* ---------- ความปลอดภัย (บนพื้นน้ำตาล) ---------- */
.cautions { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .cautions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .cautions { grid-template-columns: 1fr; } }
.cautions li { border: 1.5px solid rgba(244,231,220,.4); border-left: 6px solid var(--bolt); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.3rem; }
.cautions h3 { color: #fff; }
.cautions p { margin-top: 0.35rem; }

/* ---------- ขั้นตอน ---------- */
.flow { list-style: none; counter-reset: fl; display: grid; gap: 1.8rem 1.5rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 58rem) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 32rem) { .flow { grid-template-columns: 1fr; } }
.flow li { counter-increment: fl; border-top: 3px solid var(--lattice); padding-top: 0.9rem; position: relative; }
.flow li::before {
  content: counter(fl); position: absolute; top: -1.05rem; left: 0; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: linear-gradient(180deg, var(--glaze-hot), var(--glaze) 45%, var(--porcelain)); color: #fff; font-weight: 700;
}
.flow h3 { margin-top: 0.8rem; }
.flow p { margin-top: 0.3rem; color: var(--muted); }

.ways { list-style: none; display: grid; gap: 1.1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 62rem) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .ways { grid-template-columns: 1fr; } }
.ways li { background: var(--white); border-radius: var(--radius); padding: 1.2rem 1.3rem 1.4rem; }
.band--white .ways li { background: var(--sky); }
.ways p { margin-top: 0.4rem; color: var(--muted); }
.note { margin-top: 1.8rem; font-size: 0.94rem; color: var(--muted); }
.band--porcelain .note { color: #d9bfae; }

/* ---------- รายการหัวข้อ-คำอธิบาย ---------- */
.deflist { margin: 0; }
.deflist div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 0.3rem 1.8rem; padding: 1rem 0; border-top: 1px solid var(--rule); }
.deflist div:last-child { border-bottom: 1px solid var(--rule); }
.band--sky .deflist div { border-color: var(--sky-deep); }
.deflist dt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.55; color: var(--porcelain); }
.deflist dd { margin: 0; color: var(--muted); max-width: 40em; }
@media (max-width: 46rem) { .deflist div { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin-top: 0.7rem; }
.ticks li { position: relative; padding-left: 1.5rem; margin-top: 0.4rem; max-width: 38em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.95rem; height: 0.42rem; border-radius: 50% 50% 45% 45% / 70% 70% 30% 30%; background: linear-gradient(180deg, var(--glaze-hot), var(--porcelain)); }

/* ---------- รายละเอียด (หน้าสินค้าและบริการ) ---------- */
.item { padding: clamp(2.2rem, 5vw, 3.4rem) 0; border-top: 1px solid var(--rule); }
.item:first-of-type { border-top: 0; padding-top: 0; }
.item:last-of-type { padding-bottom: 0; }
.item h3 { font-weight: 700; font-size: clamp(var(--s-2), 2.6vw, var(--s-3)); }
.item h4 { font-family: var(--body); font-weight: 700; font-size: 1.03rem; margin: 1.3rem 0 0; }
.item p { margin-top: 0.8rem; }
.item:nth-of-type(even) .split > .photo { order: -1; }
@media (max-width: 54rem) { .item .split > .photo { order: -1; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { max-width: 50rem; }
.faq details { background: var(--white); border-radius: var(--radius); margin-top: 0.7rem; border: 1px solid var(--rule); }
.band--white .faq details { background: var(--cloud); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  font-weight: 700; font-size: 1.05rem; line-height: 1.6;
  padding: 0.9rem 3.2rem 0.9rem 1.2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.7rem; font-weight: 500; color: var(--glaze); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.2rem 1.2rem; color: var(--muted); }

/* ---------- ช่องติดต่อท้ายหน้า ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
@media (max-width: 54rem) { .cta { grid-template-columns: 1fr; } }
.cta__card { background: var(--cloud); color: var(--ink); border-radius: var(--radius); padding: 0.5rem 1.5rem; }
.cta__card div { padding: 0.85rem 0; border-top: 1px dashed var(--sky-deep); }
.cta__card div:first-child { border-top: 0; }
.cta__card small { display: block; font-size: var(--s--1); color: var(--muted); }
.cta__card b, .band--porcelain .cta__card a { font-weight: 700; font-size: 1.06rem; line-height: 1.7; color: var(--porcelain); text-decoration: none; overflow-wrap: anywhere; }
.band--porcelain .cta__card a:hover { text-decoration: underline; }
.phone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.phone-grid a { white-space: nowrap; }
@media (max-width: 22rem) { .phone-grid { grid-template-columns: 1fr; } }

/* ---------- ตารางข้อมูลบริษัท ---------- */
.spec { width: 100%; border-collapse: collapse; background: var(--cloud); border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 0.9em 1.2em; border-top: 1px solid var(--rule); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.spec th { width: 13rem; font-weight: 400; color: var(--muted); }
.spec td { font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .spec th, .spec td { display: block; width: auto; }
  .spec td { border-top: 0; padding-top: 0; }
}

/* ---------- หน้าเนื้อหายาว (นโยบาย) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--s-2); font-weight: 600; margin-top: 2.6rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose p, .prose ul { margin-top: 0.9rem; }
.prose ul { padding-left: 1.4rem; }
.prose li { margin-top: 0.35rem; max-width: 38em; }
.prose .meta { color: var(--muted); font-size: 0.95rem; margin-top: 0; }

/* ---------- หน้าติดต่อ ---------- */
.contact-list { margin: 1.8rem 0 0; }
.contact-list div { padding: 1rem 0; border-top: 1px solid var(--rule); }
.contact-list div:last-child { border-bottom: 1px solid var(--rule); }
.contact-list dt { color: var(--muted); font-size: var(--s--1); }
.contact-list dd { margin: 0.1rem 0 0; font-weight: 700; font-size: var(--s-1); line-height: 1.65; overflow-wrap: anywhere; }
.contact-list dd a { text-decoration: none; }
.contact-list dd a:hover { text-decoration: underline; }
.contact-list dd small { display: block; font-weight: 400; font-size: var(--s--1); color: var(--muted); }
.contact-list .big .phone-grid a { font-family: var(--display); font-size: var(--s-2); line-height: 1.6; color: var(--porcelain); }

.form { background: var(--white); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--rule); border-top: 8px solid var(--porcelain); }
.form h2 { font-size: var(--s-2); }
.form > p { color: var(--muted); margin-top: 0.6rem; font-size: 0.96rem; }
.field { margin-top: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--cloud);
  padding: 0.5em 0.85em; border: 1.5px solid #8d9aa3; border-radius: 6px;
}
.field input, .field select { height: 2.9rem; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--bolt); outline-offset: 0; border-color: var(--porcelain); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: end; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }
.form .btn { margin-top: 1.4rem; }
.form__hint { font-size: var(--s--1); color: var(--muted); margin-top: 0.8rem; }

.map { background: var(--cloud); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); }
.map iframe { display: block; width: 100%; height: clamp(18rem, 45vw, 26rem); border: 0; }
.map p { padding: 0.8rem 1.2rem; font-size: 0.95rem; max-width: none; }

/* ---------- ส่วนท้าย ---------- */
.site-foot { background: #2c150c; color: #e2cdbf; padding: clamp(2.5rem, 5vw, 4rem) 0 1.5rem; font-size: 0.96rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--bolt); }
.site-foot__grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr) minmax(0, 1.3fr); }
@media (max-width: 54rem) { .site-foot__grid { grid-template-columns: 1fr; } }
.site-foot h2 { font-family: var(--body); font-weight: 700; font-size: var(--s-1); color: #fff; margin-bottom: 0.7rem; }
.site-foot ul { list-style: none; }
.site-foot li { margin-top: 0.3rem; }
.site-foot address { font-style: normal; overflow-wrap: anywhere; }
.site-foot address a { white-space: nowrap; }
.site-foot__base {
  margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between;
  font-size: var(--s--1); color: #c2a898;
}
.site-foot__base p { max-width: none; margin: 0; }

/* ---------- การเคลื่อนไหว: การ์ดหัวเรื่องเลื่อนขึ้นครั้งเดียวตอนเปิดหน้าแรก ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__card { animation: rise 0.6s ease-out both; }
  .levels li { animation: rise 0.6s ease-out both; }
  .levels li:nth-child(1) { animation-delay: 0.15s; }
  .levels li:nth-child(2) { animation-delay: 0.28s; }
  .levels li:nth-child(3) { animation-delay: 0.41s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .site-head { position: static; }
  .nav, .nav-toggle, .btn-row, .map { display: none; }
}
