/* หน้าแรก เหนือเทค: ทำตามแบบ HomeDesktop (1440) และ HomeMobile (390)
   จุดตัด: ≥1100 = แบบคอม, 768–1099 = แบบคอมที่ปรับเรียงเป็นคอลัมน์, ≤767 = แบบมือถือ */

/* ====== ชิ้นส่วนร่วม ====== */
.sec{padding-top:104px;padding-bottom:104px}
.alt{background:var(--white)}
.sec.last{padding-bottom:96px}
.sec-in{display:flex;flex-direction:column;gap:36px}
.h2{margin:0;font-size:44px;line-height:1.2;font-weight:700}
.sub{margin:0;font-size:19px;line-height:1.7;font-weight:300;color:var(--ink2);max-width:760px}
.stack12{display:flex;flex-direction:column;gap:12px}
.card{background:var(--white);border:1px solid var(--line);border-radius:24px}
.dark{background:var(--navy);color:var(--white)}
.btnm,.btno{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 28px;border-radius:999px;font-weight:700;font-size:17px;cursor:pointer;text-align:center;border:0}
.btnm{background:var(--mint);color:var(--navy)}
.btno{border:1.5px solid var(--ghost-edge);color:var(--white);font-weight:600;background:transparent}
.btn-line{background:var(--line-green);color:var(--on-line)}
.dot{width:12px;height:12px;border-radius:50%;display:block;flex:none;background:var(--dot)}
.bf{background:var(--bar);height:26px;display:flex;gap:6px;align-items:center;padding-left:12px}
.bf i{width:9px;height:9px;border-radius:50%;background:var(--bar-dot);display:block}
@media (min-width:768px){.is-m{display:none!important}}
a:hover .go,.btnm:hover,.btno:hover,.btn-line:hover,.btn-line-sm:hover{filter:brightness(1.06)}
section[id],div[id]{scroll-margin-top:12px}

/* ที่ว่างแทนภาพที่ยังไม่มีภาพใช้ชื่อกลาง ๆ */
.ph{display:flex;align-items:center;justify-content:center;text-align:center;width:100%;height:100%;min-height:80px;padding:12px;background:var(--head);color:var(--ink2);font-size:13px;font-weight:600;line-height:1.4;background-image:repeating-linear-gradient(135deg,transparent 0 10px,var(--line) 10px 11px)}
.ph span{background:var(--head);padding:4px 10px;border-radius:999px}

/* ====== ฮีโร่ ====== */
.hero{padding-top:84px;padding-bottom:96px;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;right:0;top:0;bottom:0;width:60%;background:radial-gradient(55% 60% at 70% 45%,var(--glow),transparent 70%);pointer-events:none}
.hero-in{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:56px;align-items:center}
.hero-text{display:flex;flex-direction:column;gap:24px}
.eyebrow{font-size:15px;font-weight:600;color:var(--mint-soft);letter-spacing:.04em}
.h1{margin:0;font-size:56px;line-height:1.15;font-weight:700}
.h1 em{font-style:normal;color:var(--mint)}
.hero-lead{margin:0;font-size:20px;line-height:1.75;font-weight:300;color:var(--on-navy);max-width:520px}
.price-line{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.price-line strong{font-size:34px}
.price-line span{font-size:17px;color:var(--on-navy)}
.hero-btns{display:flex;gap:12px;flex-wrap:wrap}
.hero-shots{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.tile{background:var(--white);border-radius:14px;overflow:hidden;box-shadow:var(--sh-md);display:flex;flex-direction:column;color:var(--navy)}
.tile .shot{height:150px;overflow:hidden;background:var(--head)}
.tile img{display:block;width:100%;height:150px;object-fit:cover;object-position:top left}
.tile .lbl{display:flex;align-items:center;gap:8px;padding:9px 14px;font-size:14px;font-weight:700;background:var(--white)}
.tile .lbl i{width:10px;height:10px;border-radius:50%;display:block;background:var(--dot)}
.tile:nth-child(2){margin-top:36px}.tile:nth-child(3){margin-top:-8px}.tile:nth-child(4){margin-top:28px}
.hero-phone{position:absolute;left:-26px;bottom:10px;width:92px;border:5px solid var(--device);border-radius:20px;overflow:hidden;background:var(--device);box-shadow:var(--sh-hero)}
.hero-phone img{display:block;width:100%;height:190px;object-fit:cover;object-position:top}
.hero-line{position:absolute;right:-10px;bottom:-18px;width:210px;border-radius:16px;background:var(--white);color:var(--navy);overflow:hidden;box-shadow:var(--sh-hero)}
.hl-top{display:flex;align-items:center;gap:8px;padding:7px 12px;background:var(--chat-top);font-size:11px;font-weight:700;color:var(--ink2)}
.hl-top i{width:15px;height:15px;border-radius:4px;background:var(--line-green);display:block}
.hl-head{padding:8px 12px;font-size:13px;font-weight:700;background:var(--pc);color:var(--pi)}
.hl-body{padding:9px 12px 12px;font-size:12px;display:flex;flex-direction:column;gap:2px}
.hl-body strong{font-size:14px}
.hl-body span{color:var(--ink3)}

/* แถบจุดขาย */
.strip{background:var(--white);border-bottom:1px solid var(--line)}
.strip-in{padding-top:22px;padding-bottom:22px;display:flex;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;font-size:16px;font-weight:500;color:var(--ink2);list-style:none;margin:0 auto}
.strip-in li::before{content:"● "}

/* ====== การ์ด 4 ระบบ ====== */
.pick{padding-top:84px;padding-bottom:56px}
.pick .sec-in{gap:28px}
.pick h2{font-size:34px}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:stretch;list-style:none;margin:0;padding:0}
.cards>li{display:flex}
.scard{display:flex;flex-direction:column;border-radius:28px;overflow:hidden;background:var(--white);border:1px solid var(--line);width:100%}
.scard:hover{border-color:var(--navy)}
.sc-top{position:relative;height:210px;overflow:hidden;background:var(--sbg)}
.sc-dsk{position:absolute;right:-8%;top:30px;width:86%;border-radius:10px;overflow:hidden;background:var(--white);box-shadow:var(--sh-md)}
.sc-dsk img,.sc-dsk .ph{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:top left;height:auto}
.sc-mob{position:absolute;left:10%;bottom:-10px;width:30%;aspect-ratio:9/19;border:4px solid var(--device);border-radius:16px;overflow:hidden;background:var(--device);box-shadow:var(--sh-phone)}
.sc-mob img,.sc-mob .ph{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
.sc-body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:12px;flex:1}
.sc-body h3{margin:0;font-size:22px;line-height:1.3;display:flex;align-items:center;gap:10px}
.sc-body p{margin:0;font-size:15px;line-height:1.65;color:var(--ink2)}
.ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:15px;line-height:1.5}
.ticks li{display:flex;gap:9px}
.ticks b{font-weight:700;flex:none;color:var(--tick)}
.sc-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:6px}
.sc-price strong{font-size:22px}
.sc-price span{font-size:13px;color:var(--ink2)}
.sc-go{min-height:48px;border-radius:14px;background:var(--navy);color:var(--white);font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;padding:0 12px}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding-top:36px;margin:20px 0 0;border-top:1px solid var(--line)}
.stats div{display:flex;flex-direction:column}
.stats b{font-size:50px;line-height:1.1}
.stats span{color:var(--ink2);font-size:15px}

/* ====== ระบบ: แท็บ + กล่องเด่น ====== */
.hub{background:var(--white)}
.hub .sec-in{gap:28px}
.ctrl{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.tabs{display:flex;gap:8px;flex-wrap:wrap}
.tab{min-height:48px;padding:0 22px 0 16px;border-radius:999px;font-weight:600;font-size:16px;cursor:pointer;display:inline-flex;align-items:center;gap:10px;background:var(--white);color:var(--navy);border:1.5px solid var(--line);white-space:nowrap}
.tab[aria-selected="true"]{border-color:var(--navy)}
.tab:hover{border-color:var(--edge)}
.tab[aria-selected="true"]:hover{border-color:var(--navy)}
.search{margin-left:auto;display:flex;align-items:center;gap:8px;min-height:48px;border:1.5px solid var(--line);border-radius:999px;padding:0 18px;background:var(--white);min-width:340px}
.search:focus-within{outline:3px solid var(--navy);outline-offset:3px}
.search input{flex:1;border:0;background:transparent;font-size:16px;font-weight:400;color:var(--navy);outline:0;min-width:0;min-height:44px}
.search input::placeholder{color:var(--ink3);opacity:1}
.hits{border:1.5px dashed var(--edge);border-radius:22px;padding:24px 28px;background:var(--paper);display:flex;flex-direction:column;gap:14px}
.hits strong{font-size:20px}
.hits-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hit{text-align:left;cursor:pointer;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:16px 20px;display:flex;flex-direction:column;gap:4px;color:var(--navy);min-height:44px}
.hit:hover{border-color:var(--navy)}
.hit .tg{font-size:12px;font-weight:700;color:var(--ink2);display:flex;align-items:center;gap:7px}
.hit .tg i{width:9px;height:9px;border-radius:50%;display:block;background:var(--dot)}
.hit b{font-size:17px;line-height:1.4}
.hit .ds{font-size:14.5px;line-height:1.7;color:var(--ink2)}
.panel{border-radius:32px;overflow:hidden;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);gap:24px;align-items:center;padding:44px 52px;color:var(--white);min-height:600px;position:relative;background:var(--sbg)}
.p-text{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.badge{font-size:14px;font-weight:700;padding:5px 14px;border-radius:999px;background:var(--pc);color:var(--pi)}
.p-text h3{margin:0;font-size:40px;line-height:1.2;font-weight:700}
.p-lead{margin:0;font-size:17px;line-height:1.7;font-weight:300;color:var(--on-navy2);max-width:460px}
.p-hl{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;width:100%;max-width:480px}
.p-hl li{display:flex;gap:12px;padding:9px 14px;border-radius:14px;background:var(--glass);border:1px solid var(--glass-edge)}
.p-hl .n{width:30px;height:30px;border-radius:9px;background:var(--pc);color:var(--pi);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex:none}
.p-hl b{display:block;font-size:16px}
.p-hl small{font-size:14px;color:var(--white);font-weight:300;line-height:1.6;display:block}
.p-price{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.p-price strong{font-size:26px}
.p-price span{font-size:14px;color:var(--on-navy)}
.p-btns{display:flex;gap:10px;flex-wrap:wrap}
.p-btns .btnm{background:var(--pc);color:var(--pi)}
.p-vis{position:relative;height:100%;min-height:420px}
.p-browser{position:absolute;right:0;top:50%;margin-top:-190px;width:92%;border-radius:14px;overflow:hidden;background:var(--white);box-shadow:var(--sh-lg)}
.p-browser img{display:block;width:100%;height:330px;object-fit:cover;object-position:top left;filter:brightness(.82)}
.p-browser .ph{height:330px}
.p-phone{position:absolute;left:0;bottom:-3%;width:25%;border:6px solid var(--device);border-radius:26px;overflow:hidden;background:var(--device);box-shadow:0 0 0 3px var(--pc),var(--sh-panel-phone)}
.p-phone img{display:block;width:100%;height:430px;object-fit:cover;object-position:top}
.p-phone .ph{height:430px}
.p-line{position:absolute;right:2%;bottom:6%;width:35%;border-radius:20px;background:var(--white);color:var(--navy);overflow:hidden;box-shadow:var(--sh-panel-line)}
.p-line .hl-top{padding:9px 14px;font-size:12px}
.p-line .hl-top i{width:18px;height:18px;border-radius:5px}
.p-line .hl-head{padding:10px 14px;font-size:14px}
.p-line .hl-body{padding:12px 14px 14px;gap:5px;font-size:13px}
.p-line .hl-body strong{font-size:15px}

/* แกลเลอรี */
.block{display:flex;flex-direction:column;gap:22px;margin-top:36px}
.block h3{margin:0;font-size:34px;line-height:1.25;font-weight:700}
.block h3 small{font-size:18px;font-weight:500;color:var(--ink2)}
.gal-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.gal-head .tight{gap:8px}
.gal-head p{margin:0;font-size:17px;line-height:1.7;color:var(--ink2)}
.seg{background:var(--white);border:1px solid var(--line);border-radius:999px;padding:4px;display:flex;gap:4px}
.seg button{min-height:44px;padding:0 24px;border:0;border-radius:999px;font-size:16px;font-weight:600;cursor:pointer;background:transparent;color:var(--ink2)}
.seg button[aria-selected="true"]{background:var(--navy);color:var(--white)}
.seg button span{opacity:.75}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{min-height:44px;padding:0 18px;border-radius:999px;font-size:15px;font-weight:600;cursor:pointer;border:1.5px solid var(--edge);background:var(--white);color:var(--navy)}
.chip[aria-pressed="true"]{border-color:var(--navy);background:var(--navy);color:var(--white)}
.gal{display:grid;gap:22px;align-items:start;list-style:none;margin:0;padding:0}
.gal.is-phone{grid-template-columns:repeat(4,minmax(0,1fr))}
.gal.is-desk{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.gal figure{margin:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.gal.is-desk figure{gap:12px}
.fr-phone{background:var(--sand);border-radius:26px;padding:12px 12px 0;display:flex;flex-direction:column;gap:8px}
.zoom{align-self:flex-end;min-height:44px;padding:0 14px;border-radius:999px;border:1.5px solid var(--edge);background:var(--white);color:var(--navy);font-size:14px;font-weight:600;cursor:zoom-in}
.scr{height:620px;overflow-y:auto;border-radius:20px 20px 0 0;background:var(--white)}
.scr img{display:block;width:100%}
.scr .ph{height:100%;min-height:300px}
.fr-desk{display:block;width:100%;border:0;padding:18px 18px 0;background:var(--sand);border-radius:22px;overflow:hidden;cursor:zoom-in}
.fr-desk img{display:block;width:100%;border-radius:10px 10px 0 0;box-shadow:var(--sh-desk)}
.fr-desk .ph{aspect-ratio:16/10;height:auto;border-radius:10px 10px 0 0}
.fr-desk.static{cursor:default}
.gal figcaption{font-size:15px;line-height:1.6;color:var(--ink2)}
.gal figcaption strong{color:var(--navy)}
.note{font-size:14px;color:var(--ink3)}

/* ฟังก์ชัน */
.fn-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.fn-btn{min-height:48px;padding:0 26px;border-radius:999px;border:1.5px solid var(--navy);background:var(--white);color:var(--navy);font-size:16px;font-weight:600;cursor:pointer}
.fn-body{display:flex;flex-direction:column;gap:22px}
.fn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.fn-grid li{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:20px 24px;display:flex;flex-direction:column;gap:6px}
.fn-grid b{font-size:18px;line-height:1.4}
.fn-grid span{font-size:15px;line-height:1.7;color:var(--ink2)}
.fn-hint{margin:0;font-size:17px;line-height:1.7;color:var(--ink2)}

/* ข้อความไลน์ */
.linebox{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:40px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:28px;padding:40px;margin-top:36px}
.linebox h3{margin:0;font-size:34px;line-height:1.25;font-weight:700}
.linebox p{margin:0;font-size:18px;line-height:1.8;color:var(--ink2)}
.phone-chat{background:var(--chat-bg);border-radius:26px;overflow:hidden;max-width:380px;width:100%;margin:0 auto;box-shadow:var(--sh-soft)}
.chat-top{background:var(--white);padding:12px 16px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:700;border-bottom:1px solid var(--chat-edge)}
.chat-top i{width:24px;height:24px;border-radius:50%;background:var(--line-green);display:block}
.chat-list{padding:16px 12px;display:flex;flex-direction:column;gap:10px;min-height:300px;list-style:none;margin:0}
.msg{align-self:flex-start;max-width:90%;border-radius:18px;background:var(--white);overflow:hidden;font-size:14px;line-height:1.55;color:var(--navy)}
.msg .mh{padding:10px 14px;font-size:14px;font-weight:700;background:var(--pc);color:var(--pi)}
.msg .mb{padding:10px 14px 12px;display:flex;flex-direction:column;gap:2px}
.msg .mb span{color:var(--ink3)}

/* ภาพขยาย */
.lb{border:0;padding:0;background:transparent;color:var(--white);max-width:none;max-height:none;width:100%;height:100%}
.lb::backdrop{background:var(--veil)}
.lb[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:14px}
.lb-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.lb-bar button{min-height:44px;padding:0 20px;border-radius:999px;border:1.5px solid var(--ghost-edge);background:transparent;color:var(--white);font-size:16px;font-weight:600;cursor:pointer}
.lb-bar .close{border:0;background:var(--mint);color:var(--navy);font-weight:700}
.lb-bar span{color:var(--on-navy);font-size:15px}
.lb-img{max-height:76vh;max-width:100%;overflow:auto;border-radius:12px;background:var(--white)}
.lb-img img{display:block;max-width:100%;height:auto}
.lb-img.is-phone img{width:440px}
.lb-img.is-desk img{width:1240px}
.lb-cap{font-size:16px;line-height:1.6;text-align:center;max-width:820px}

/* ====== เส้นทางลูกค้า ====== */
.flow-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:32px;align-items:stretch}
.steps{display:flex;flex-direction:column;gap:12px;list-style:none;margin:0;padding:0}
.step{padding:22px 26px;border-radius:20px;border:1px solid var(--line);background:var(--white);display:flex;gap:16px}
.step.on{background:var(--navy);color:var(--white);border-color:var(--navy)}
.step .n{flex:none;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;background:var(--sand);color:var(--navy)}
.step.on .n{background:var(--mint)}
.step b{display:block;font-size:20px;line-height:1.35}
.step small{display:block;font-size:15px;line-height:1.7;color:var(--ink2);margin-top:2px}
.step.on small{color:var(--on-navy)}
.story{border-radius:28px;height:560px;position:relative;overflow:hidden;display:flex;gap:24px;justify-content:center;align-items:flex-end;padding:56px 40px 0;background:var(--sand)}
.tag{position:absolute;left:14px;top:14px;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:700;background:var(--navy);color:var(--white);display:flex;align-items:center;gap:7px}
.tag i{width:9px;height:9px;border-radius:50%;display:block;background:var(--dot)}
.sp{width:36%;border:6px solid var(--device);border-bottom:0;border-radius:30px 30px 0 0;overflow:hidden;background:var(--device);box-shadow:var(--sh-story)}
.sp+.sp{width:34%;margin-bottom:-28px}
.sp img{display:block;width:100%;height:460px;object-fit:cover;object-position:top}
.sp .ph{height:460px}

/* ====== หลังบ้าน ====== */
.back-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:48px;align-items:center}
.back-shot{background:var(--sand);border-radius:28px;padding:30px 30px 0;overflow:hidden}
.back-shot>div{background:var(--white);border-radius:12px 12px 0 0;overflow:hidden}
.back-shot img{display:block;width:100%;height:470px;object-fit:cover;object-position:top left}
.back-text{display:flex;flex-direction:column;gap:20px}
.back-text .h2{font-size:38px}
.back-text .sub{font-size:18px}
.back-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;font-size:16px;line-height:1.7;color:var(--ink2)}
.back-list b{color:var(--navy)}

/* ====== ตารางเทียบ ====== */
.cmp{overflow:hidden;font-size:16px;line-height:1.6}
.cmp table{width:100%;border-collapse:collapse;table-layout:fixed}
.cmp th,.cmp td{padding:16px 20px;text-align:left;vertical-align:top;font-weight:400}
.cmp thead th{background:var(--head);font-weight:700}
.cmp tbody th{color:var(--ink2);font-size:15px;font-weight:700;width:18%}
.cmp tbody tr{border-top:1px solid var(--line)}

/* ====== ราคา ====== */
.price-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:stretch}
.price-card{background:var(--navy);color:var(--white);border-radius:32px;padding:48px 52px;display:flex;flex-direction:column;gap:18px}
.pc-big{display:flex;align-items:baseline;gap:14px}
.pc-big strong{font-size:64px;line-height:1}
.pc-big span{font-size:22px}
.pc-sub{font-size:17px;color:var(--on-navy)}
.pc-rows{border-top:1px solid var(--glass-edge);padding-top:18px;display:flex;flex-direction:column;gap:6px}
.pc-row{display:flex;justify-content:space-between;font-size:17px;gap:12px}
.pc-row.sum{font-size:18px}
.pc-row.vat{color:var(--on-navy)}
.pc-row.tot{font-size:22px;font-weight:700}
.pc-row.tot span:last-child{color:var(--mint)}
.pc-row strong{white-space:nowrap}
.pc-fine{font-size:15px;color:var(--on-navy);line-height:1.7}
.pc-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:1.7;color:var(--on-navy2)}
.pc-btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}
.calc{padding:40px 44px;display:flex;flex-direction:column;gap:16px}
.calc>strong{font-size:24px}
.calc p{margin:0;font-size:16px;line-height:1.7;color:var(--ink2)}
.calc-row{display:flex;justify-content:space-between;font-size:16px;gap:12px}
.calc input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:44px;background:transparent;margin:0;cursor:pointer;--pct:26%}
.calc input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:linear-gradient(90deg,var(--navy) var(--pct),var(--sand) var(--pct))}
.calc input[type=range]::-moz-range-track{height:8px;border-radius:4px;background:var(--sand)}
.calc input[type=range]::-moz-range-progress{height:8px;border-radius:4px;background:var(--navy)}
.calc input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:var(--navy);border:0;margin-top:-8px}
.calc input[type=range]::-moz-range-thumb{width:24px;height:24px;border-radius:50%;background:var(--navy);border:0}
.calc-out{margin-top:10px;background:var(--paper);border-radius:18px;padding:22px 24px;display:flex;flex-direction:column;gap:4px}
.calc-out .s1{font-size:15px;color:var(--ink2)}
.calc-out .big{font-size:38px;line-height:1.2;font-weight:700}
.calc-out .big small{font-size:18px;font-weight:500;color:var(--ink2)}
.calc-out .s2{font-size:14px;line-height:1.7;color:var(--ink2)}
.ptable{overflow:hidden}
.ptable table{width:100%;border-collapse:collapse}
.ptable th,.ptable td{padding:18px 28px;text-align:left;font-weight:400;font-size:17px;vertical-align:middle}
.ptable thead th{background:var(--head);font-size:14px;font-weight:700;color:var(--ink2);padding-top:16px;padding-bottom:16px}
.ptable tbody tr{border-top:1px solid var(--line)}
.ptable tbody th{font-weight:700}
.ptable small{color:var(--ink3);font-size:14px}
.ptable .lk{font-weight:600;color:var(--green-ink)}
.ptable .lk a{display:inline-flex;align-items:center;min-height:44px}
.ptable .lk a:hover{text-decoration:underline}

/* ====== คำถามที่พบบ่อย ====== */
.faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.faq{padding:22px 26px;display:flex;flex-direction:column;gap:6px;background:var(--paper)}
.faq h3{margin:0;font-size:18px;line-height:1.4}
.faq p{margin:0;font-size:16px;line-height:1.75;color:var(--ink2)}

/* ====== เกี่ยวกับ + ติดต่อ ====== */
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.about-grid .card{padding:36px 40px;display:flex;flex-direction:column;gap:14px}
.about-grid h2{margin:0;font-size:32px;line-height:1.2;font-weight:700}
.about-grid p{margin:0;font-size:16px;line-height:1.75;color:var(--ink2)}
.about-grid p b{color:var(--navy)}
.about-grid address{font-style:normal;font-size:16px;line-height:1.9;color:var(--ink2)}
.contact{border-radius:32px;padding:48px 56px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:center}
.contact-t{display:flex;flex-direction:column;gap:14px;max-width:640px}
.contact h2{margin:0;font-size:34px;line-height:1.3}
.contact p{margin:0;font-size:17px;line-height:1.7;font-weight:300;color:var(--on-navy)}
.contact .mail{font-size:16px;color:var(--on-navy)}
.contact .mail a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:3px;color:var(--white)}
.btn-big{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 34px;border-radius:999px;background:var(--line-green);color:var(--on-line);font-weight:700;font-size:18px;align-self:flex-start}
.qr{display:flex;flex-direction:column;gap:10px;align-items:center}
.qr-ph{width:168px;height:168px;border-radius:20px;background:var(--white);border:2px dashed var(--edge);display:flex;align-items:center;justify-content:center;text-align:center;padding:16px;font-size:13px;line-height:1.5;color:var(--ink2)}
.qr span{font-size:14px;color:var(--on-navy)}

/* แถบล่างมือถือ */
.sticky{display:none}

/* ====== จุดตัดกลาง 768–1099 ====== */
@media (max-width:1099px){
  .sec{padding-top:80px;padding-bottom:80px}
  .h2{font-size:36px}
  .hero{padding-top:56px;padding-bottom:72px}
  .hero-in{grid-template-columns:minmax(0,1fr);gap:48px}
  .hero-lead{max-width:640px}
  .hero-shots{max-width:640px;margin:0 auto;width:100%}
  .hero-phone{left:8px}
  .hero-line{right:8px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:28px}
  .search{margin-left:0;min-width:0;flex:1 1 280px}
  .panel{grid-template-columns:minmax(0,1fr);padding:36px 32px;min-height:0}
  .p-vis{min-height:430px}
  .p-browser{margin-top:-200px;width:88%}
  .hits-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gal.is-phone{grid-template-columns:repeat(3,minmax(0,1fr))}
  .fn-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .linebox{grid-template-columns:minmax(0,1fr);padding:32px}
  .flow-grid,.back-grid,.price-grid{grid-template-columns:minmax(0,1fr)}
  .story{height:520px}
  .price-card{padding:40px 36px}
  .about-grid{grid-template-columns:minmax(0,1fr)}
  .contact{grid-template-columns:minmax(0,1fr);padding:40px 36px}
  .qr{align-items:flex-start}
  /* ตารางเทียบ: เรียงเป็นการ์ดต่อแถว */
  .cmp thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .cmp table,.cmp tbody,.cmp tr,.cmp th,.cmp td{display:block;width:auto}
  .cmp tbody tr{padding:8px 0}
  .cmp tbody th{padding:12px 20px 0;width:auto}
  .cmp td{padding:6px 20px}
  .cmp td::before{content:attr(data-sys) " · ";font-weight:700;color:var(--green-ink)}
}
@media (max-width:899px){
  .gal.is-phone{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gal.is-desk{grid-template-columns:minmax(0,1fr)}
}

/* ====== มือถือ ≤767 (ตามแบบ 390) ====== */
@media (max-width:767px){
  .is-d{display:none!important}
  .br-d{display:none}
  .sec{padding-top:56px;padding-bottom:0}
  .sec.last{padding-bottom:56px}
  .alt:not(.hub){background:var(--paper)}
  .hub{padding-bottom:40px}
  .sec-in{gap:20px}
  .h2{font-size:30px;line-height:1.25}
  .btnm,.btno,.btn-line{min-height:52px}
  /* ฮีโร่ */
  .hero{padding-top:44px;padding-bottom:0}
  .hero-in{gap:20px;display:flex;flex-direction:column;align-items:stretch}
  .hero-text{gap:20px}
  .eyebrow{font-size:14px;letter-spacing:0}
  .h1{font-size:38px;line-height:1.18}
  .hero-lead{font-size:17px}
  .price-line{gap:10px}
  .price-line strong{font-size:28px}
  .price-line span{font-size:15px}
  .hero-btns{flex-direction:column;gap:10px}
  .hero-btns>*{width:100%}
  .hero-shots{grid-template-columns:1fr 1fr;gap:10px;margin-top:8px;padding-bottom:36px;max-width:none}
  .tile{border-radius:12px;box-shadow:none}
  .tile:nth-child(n){margin-top:0}
  .tile .shot,.tile img{height:96px}
  .tile .lbl{padding:8px 10px;font-size:13px;gap:7px}
  .tile .lbl i{width:9px;height:9px}
  .hero-phone,.hero-line{display:none}
  .strip-in{padding-top:16px;padding-bottom:16px;gap:8px 18px;font-size:14px;justify-content:flex-start}
  /* การ์ดระบบ */
  .pick{padding-top:56px;padding-bottom:40px}
  .pick h2{font-size:26px}
  .cards{grid-template-columns:minmax(0,1fr);gap:14px}
  .scard{border-radius:24px}
  .sc-top{height:190px}
  .sc-dsk{right:-6%;top:22px;width:78%;border-radius:8px}
  .sc-mob{left:8%;bottom:-8px;width:26%;border-width:3px;border-radius:14px}
  .sc-body{padding:20px 20px 22px;gap:10px}
  .sc-body h3{font-size:21px}
  .ticks{gap:5px}
  .sc-price strong{font-size:21px}
  .stats{display:none}
  /* ระบบ */
  .hub .sec-in{gap:18px}
  .hub h2{font-size:26px}
  .tabs,.chips,.gal{scrollbar-width:none}
  .tabs::-webkit-scrollbar,.chips::-webkit-scrollbar,.gal::-webkit-scrollbar{display:none}
  .tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;width:100%}
  .search{flex:1 1 100%;padding:0 16px;width:100%}
  .hits{padding:16px;border-radius:18px;gap:10px}
  .hits strong{font-size:17px}
  .hits-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .hit{border-radius:14px;padding:12px 16px}
  .hit b{font-size:16px}
  .hit .ds{font-size:14px;line-height:1.65}
  .panel{border-radius:26px;padding:26px 20px;gap:14px;display:flex;flex-direction:column;align-items:stretch}
  .p-text{gap:14px;align-items:stretch}
  .badge{align-self:flex-start}
  .p-text h3{font-size:28px;line-height:1.25}
  .p-lead{font-size:16px}
  .p-hl{max-width:none;gap:8px}
  .p-hl li{padding:10px 12px}
  .p-hl b{font-size:15px}
  .p-hl small{font-size:13px}
  .p-price{gap:8px}
  .p-price strong{font-size:24px}
  .p-price span{font-size:13px}
  .p-btns{flex-direction:column}
  .p-vis{display:none}
  .block{margin-top:8px;gap:14px}
  .block h3{font-size:24px}
  .gal-head .tight{gap:8px}
.gal-head p{display:none}
  .gal-head{align-items:stretch}
  .seg{align-self:flex-start}
  .seg button{padding:0 20px}
  .chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .chip{white-space:nowrap}
  .gal{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;padding-bottom:10px}
  .gal figure{flex:none;scroll-snap-align:start;width:248px;gap:0}
  .gal.is-desk figure{width:320px}
  .fr-phone{border-radius:22px;padding:10px 10px 0}
  .scr{height:440px;border-radius:16px 16px 0 0}
  .fr-desk{padding:10px 10px 0;border-radius:18px}
  .fr-desk img{border-radius:8px 8px 0 0}
  .gal figcaption{font-size:14px;margin-top:8px}
  .fn-head h3{font-size:24px}
  .fn-btn{min-height:44px;padding:0 20px;font-size:15px}
  .fn-hint{display:none}
  .fn-body{gap:12px}
  .fn-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .fn-grid li{border-radius:16px;padding:14px 18px;gap:4px}
  .fn-grid b{font-size:16px}
  .fn-grid span{font-size:14px}
  .linebox{padding:22px 16px;border-radius:24px;gap:14px;margin-top:8px}
  .linebox h3{font-size:24px}
  .linebox .is-d{display:none!important}
  .phone-chat{border-radius:22px;max-width:none}
  .chat-top{padding:10px 14px}
  .chat-top i{width:22px;height:22px}
  .chat-list{padding:14px 10px;min-height:0}
  .msg{border-radius:16px;max-width:92%}
  .msg .mb{padding:9px 14px 11px}
  .lb[open]{padding:16px;gap:12px}
  .lb-bar{gap:8px}
  .lb-bar button{padding:0 16px;font-size:15px}
  .lb-img{max-height:70vh;border-radius:10px}
  .lb-img.is-phone img{width:360px}
  .lb-img.is-desk img{width:900px}
  .lb-cap{font-size:14px}
  /* เส้นทาง */
  .flow .sub{font-size:17px}
  .flow-grid{display:flex;flex-direction:column-reverse;gap:20px}
  .story{border-radius:24px;height:300px;padding:28px 20px 0;gap:14px}
  .tag{display:none}
  .sp{width:40%;border-width:5px;border-radius:24px 24px 0 0}
  .sp+.sp{width:38%;margin-bottom:-18px}
  .sp img,.sp .ph{height:300px}
  .steps{gap:12px}
  .step{padding:18px 20px;border-radius:20px;flex-direction:column;gap:4px}
  .step.on{background:var(--white);color:var(--navy);border-color:var(--line)}
  .step .n{width:auto;height:auto;border-radius:0;background:none;color:var(--green-ink);font-size:13px;justify-content:flex-start}
  .step.on .n{background:none}
  .step .n::before{content:"ขั้นที่ "}
  .step b{font-size:18px}
  .step.on small,.step small{color:var(--ink2);font-size:15px}
  /* ราคา */
  .price-grid{gap:16px}
  .price-card{border-radius:24px;padding:28px 22px;gap:14px}
  .pc-big{gap:10px}
  .pc-big strong{font-size:52px}
  .pc-big span{font-size:20px}
  .pc-sub{font-size:16px}
  .pc-rows{padding-top:14px;gap:4px}
  .pc-row{font-size:16px}
  .pc-row.sum{font-size:18px;font-weight:700}
  .pc-row.sum span:last-child{color:var(--mint)}
  .pc-list{font-size:15px;gap:6px}
  .pc-btns{margin-top:0}
  .pc-btns>*{width:100%}
  .ptable table,.ptable tbody,.ptable tr,.ptable th,.ptable td{display:block}
  .ptable thead{display:none}
  .ptable tbody tr{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 20px;border-top:1px solid var(--line)}
  .ptable tbody tr:first-child{border-top:0}
  .ptable tbody th{padding:16px 0;font-size:17px}
  .ptable td{padding:0}
  .ptable td.m-hide{display:none}
  .ptable .lk{font-size:14px;text-align:right}
  /* คำถาม */
  .faq-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .faq{padding:18px 20px}
  .faq h3{font-size:17px}
  .faq p{font-size:15px}
  /* เกี่ยวกับ */
  .about-grid{gap:14px}
  .about-grid .card{padding:24px 22px;gap:8px;border-radius:20px}
  .about-grid h2{font-size:20px}
  .about-grid address{font-size:15px;line-height:1.85}
  .contact{border-radius:24px;padding:30px 22px;gap:14px;display:flex;flex-direction:column;align-items:stretch}
  .contact-t{gap:14px}
  .contact h2{font-size:26px}
  .contact p{font-size:16px;line-height:1.75}
  .btn-big{width:100%;min-height:52px;font-size:17px;padding:0 20px;align-self:stretch}
  .qr{display:none}
  .sticky{display:flex;position:sticky;bottom:0;z-index:5;background:var(--white);border-top:1px solid var(--line);padding:10px 16px;align-items:center;justify-content:space-between;gap:12px;box-shadow:var(--sh-bar)}
  .sticky span{display:flex;flex-direction:column;line-height:1.3}
  .sticky strong{font-size:17px}
  .sticky small{font-size:12px;color:var(--ink3)}
  .sticky a{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:999px;background:var(--line-green);color:var(--on-line);font-weight:700;font-size:16px}
}
@media (max-width:359px){
  .h1{font-size:34px}
  .sc-price span{flex-basis:100%}
}
