:root{
  --ww:#FFFCF7; --ivory:#F7F1E8; --copper:#B7653F; --copper-d:#9A5233; --copper-l:#E8B196;
  --esp:#2D1D16; --ink2:#5E4B40; --mut:#7D6A5C; --teal:#0F5A5C; --sage:#8EA58D; --line:#E7D8C9;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ww);color:var(--esp);
  font-family:"IBM Plex Sans Thai",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
.nb{white-space:nowrap}
.wrap{max-width:1160px;margin:0 auto;padding:0 22px}
.narrow{max-width:760px}
.center{text-align:center}
h1,h2,h3{margin:0;font-weight:600;letter-spacing:-.005em}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}

/* ป้ายงานค้าง · ซ่อนด้วย ?notes=0 */
.todo,.todo-inline{display:inline-block;font-size:13px;font-weight:600;line-height:1.5;color:#7A3E22;background:#FFF1DD;
  border:1px dashed var(--copper);border-radius:6px;padding:1px 7px;vertical-align:middle}
.todo-inline{font-size:.8em;margin-left:2px}
.hide-todo .todo{display:none}
.hide-todo .todo-inline{border:0;background:none;padding:0;color:inherit;font-size:inherit}

/* ปุ่ม */
.btn{display:inline-block;background:var(--copper);color:#FFF;font-weight:600;font-size:20px;line-height:1.4;
  padding:18px 36px;border-radius:999px;text-decoration:none;text-align:center;border:0;cursor:pointer;font-family:inherit;
  box-shadow:0 10px 24px rgba(183,101,63,.30);transition:transform .15s ease,background .15s ease}
.btn:hover{background:var(--copper-d);transform:translateY(-2px)}
.btn:focus-visible,.btn-ghost:focus-visible,.link:focus-visible{outline:3px solid var(--esp);outline-offset:3px}
.btn-sm{font-size:16px;padding:10px 20px;box-shadow:none}
.btn-light{background:var(--ww);color:var(--copper-d);box-shadow:none}
.btn-light:hover{background:#FFF;color:var(--esp)}
.btn-ghost{display:block;text-align:center;font-size:16px;font-weight:600;color:var(--copper-d);text-decoration:none;
  border:1.5px solid var(--copper-l);border-radius:999px;padding:11px 14px;margin-top:18px;transition:background .15s}
.btn-ghost:hover{background:var(--ivory)}
.micro{font-size:16px;color:var(--mut);margin-top:12px}
.link{background:none;border:0;padding:4px 2px;font:inherit;font-weight:600;color:var(--copper-d);text-decoration:underline;
  text-underline-offset:4px;cursor:pointer}

/* nav */
.nav{position:sticky;top:0;z-index:50;background:rgba(255,252,247,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:72px}
.nav .logo{height:52px;width:auto}

/* section */
section{padding:72px 0}
h2{font-size:34px;line-height:1.35;text-align:center;margin-bottom:36px}
.dark{background:var(--esp);color:#F6EDE2}
.dark h2{color:#FFFCF7}

/* hero */
.hero{padding:28px 0 56px;background:linear-gradient(180deg,var(--ivory) 0%,var(--ww) 100%)}
.hero-in{display:grid;gap:28px}
.hero-txt{text-align:center}
h1{font-size:38px;line-height:1.3;margin-bottom:14px}
h1 em{font-style:normal;color:var(--copper)}
.lead{font-size:20px;color:var(--ink2);margin-bottom:28px}
.hero-img img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:50% 30%;border-radius:24px}

/* 3 ทาง */
.cards3{display:grid;gap:22px}
.pcard{background:#FFF;border:1px solid var(--line);border-radius:22px;overflow:hidden;display:flex;flex-direction:column}
.pcard img{width:100%;aspect-ratio:16/10;object-fit:cover}
.pbody{padding:22px 24px 26px;display:flex;flex-direction:column;flex:1}
.plabel{font-size:15px;font-weight:700;letter-spacing:.14em;color:var(--copper)}
.pcard h3{font-size:25px;line-height:1.35;margin:2px 0 4px}
.pfor{font-size:17px;color:var(--ink2);margin-bottom:14px}
.ticks li{position:relative;padding:3px 0 3px 30px;font-size:18px}
.ticks li::before{content:"";position:absolute;left:5px;top:12px;width:12px;height:7px;border-left:2.2px solid var(--teal);border-bottom:2.2px solid var(--teal);transform:rotate(-45deg)}
.price{margin-top:auto;padding-top:16px;border-top:1px solid var(--line);font-size:26px;font-weight:600;color:var(--copper-d)}
.ticks+.price{margin-top:18px}
.price span:first-child{font-size:16px;font-weight:500;color:var(--mut);margin-right:4px}

/* 4 ขั้น */
.step4{display:grid;gap:14px;counter-reset:s}
.step4 li{display:flex;align-items:center;gap:16px;font-size:20px;font-weight:500;background:rgba(255,252,247,.06);
  border:1px solid rgba(232,177,150,.25);border-radius:18px;padding:16px 18px}
.step4 b{display:none}
.sico{flex:none;width:56px;height:56px;border-radius:50%;background:var(--copper);display:flex;align-items:center;justify-content:center}
.sico svg{width:30px;height:30px;fill:none;stroke:#FFF;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ทีม */
.team{background:var(--ivory)}
.team4{display:grid;grid-template-columns:1fr 1fr;gap:26px 14px;margin-bottom:22px}
.team4 li{text-align:center;display:flex;flex-direction:column;align-items:center}
.avatar{width:104px;height:104px;border-radius:50%;margin-bottom:12px;border:2px solid var(--copper-l);
  background:var(--ww) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='25' r='11' fill='none' stroke='%23E8B196' stroke-width='2'/%3E%3Cpath d='M12 56c3-11 11-16 20-16s17 5 20 16' fill='none' stroke='%23E8B196' stroke-width='2'/%3E%3C/svg%3E") center/62% no-repeat}
.team4 b{font-size:17px;font-weight:600;line-height:1.4}
.team4 span:last-child{font-size:15px;color:var(--teal);font-weight:600;margin-top:4px}
.team .center+.center{margin-top:10px}

/* มาตรฐาน */
.std{background:var(--teal);color:#F2F7F6;padding:34px 0}
.std-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px 30px;font-size:20px}
.std-row b{font-weight:700;letter-spacing:.06em}
.std-row li{display:flex;align-items:center;gap:8px}
.std-row li::before{content:"";flex:none;width:24px;height:24px;border-radius:50%;background:#A9CFCB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%230F5A5C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
.std-clinic{width:100%;justify-content:center;font-size:18px}

/* FAQ */
.faq details{border-bottom:1px solid var(--line);padding:6px 0}
.faq summary{list-style:none;cursor:pointer;font-size:20px;font-weight:600;padding:14px 40px 14px 0;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:6px;top:8px;font-size:30px;font-weight:400;color:var(--copper)}
.faq details[open] summary::after{content:"–"}
.faq details p{font-size:18px;color:var(--ink2);padding:0 0 16px}

/* CTA ท้าย */
.final{padding:80px 0 88px;background:var(--esp) radial-gradient(circle at 80% 0%,rgba(183,101,63,.35),transparent 55%)}
.final h2{margin-bottom:30px}
.final .micro{color:#CDBBAE}

/* footer */
.foot{background:var(--ivory);padding:44px 0 120px;font-size:14px;color:var(--mut);text-align:center}
.foot p{margin-top:8px}
.foot .logo-foot{height:112px;width:auto;margin:0 auto 6px}
.foot a{color:var(--copper-d)}

/* sticky มือถือ */
.sticky{position:fixed;left:0;right:0;bottom:0;z-index:60;padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,252,247,.96);border-top:1px solid var(--line);backdrop-filter:blur(8px)}
.sticky .btn{display:block;width:100%;padding:15px 18px;font-size:19px}

/* modal ทีม */
dialog{border:0;border-radius:22px;padding:30px 26px;max-width:720px;width:calc(100% - 28px);max-height:86vh;color:var(--esp);background:var(--ww)}
dialog::backdrop{background:rgba(45,29,22,.55)}
dialog h2{font-size:28px;margin-bottom:6px}
.dsub{text-align:center;color:var(--ink2);font-size:17px;margin-bottom:20px}
.bio{border-top:1px solid var(--line);padding:18px 0}
.bio h3{font-size:20px}
.bio .role{font-size:15px;color:var(--teal);font-weight:600;margin-bottom:8px}
.bio p{font-size:16.5px;color:var(--ink2);margin-top:6px}
.x{position:absolute;top:10px;right:14px;background:none;border:0;font-size:34px;line-height:1;color:var(--mut);cursor:pointer}

.hide-m{display:none}

@media (min-width:900px){
  body{font-size:18px}
  .hide-m{display:inline-block}
  .sticky{display:none}
  .foot{padding-bottom:48px}
  section{padding:96px 0}
  h2{font-size:42px;margin-bottom:48px}
  .hero{padding:56px 0 88px}
  .hero-in{grid-template-columns:1fr 1.05fr;align-items:center;gap:56px}
  .hero-txt{text-align:left}
  h1{font-size:58px}
  .lead{font-size:23px}
  .hero-img img{aspect-ratio:1/1}
  .cards3{grid-template-columns:repeat(3,1fr)}
  .step4{grid-template-columns:repeat(4,1fr);gap:18px}
  .step4 li{flex-direction:column;text-align:center;padding:30px 18px;font-size:21px}
  .sico{width:72px;height:72px}
  .sico svg{width:38px;height:38px}
  .team4{grid-template-columns:repeat(4,1fr)}
  .avatar{width:136px;height:136px}
  .team4 b{font-size:19px}
  .std-row{font-size:22px}
  .std-clinic{width:auto}
}
