/* =========================================================================
   BNJ Solutions — main.css
   สีและฟอนต์ยกมาจากเว็บเดิม (navy #16294f + cyan #4bc0e8 · IBM Plex Sans Thai + Poppins)
   mobile-first · ไม่ใช้ framework
   ========================================================================= */

:root {
    --navy: #16294f;
    --navy-d: #0e1c38;
    --blue: #2f6fd6;
    --blue-d: #1d4fa8;
    --cyan: #4bc0e8;
    --cyan-d: #1f9bcf;
    --ink: #15294c;
    --ink-soft: #33456a;
    --muted: #5d7190;
    --line: #e2ebf5;
    --bg: #ffffff;
    --bg-alt: #f2f7fc;
    --ok: #16a34a;
    --line-green: #06c755;
    --err: #dc2626;
    --grad: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
    --font: 'IBM Plex Sans Thai', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Poppins', 'IBM Plex Sans Thai', system-ui, sans-serif;
    --r: 14px;
    --r-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(22, 41, 79, .18);
    --shadow-lg: 0 24px 50px -20px rgba(22, 41, 79, .3);
    --wrap: 1180px;
    --hdr: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--ink); background: var(--bg); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); text-decoration: none; }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.3; margin: 0 0 .5em; color: var(--navy); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }
.center { text-align: center; }
.sec p.center { margin: 32px 0 0; }
.muted { color: var(--muted); }
.h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.h3 { font-size: 1.2rem; margin-top: 1.4em; }

/* ---------- ปุ่ม ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: .5em 1.1em; font-size: .92rem; }
.btn--lg { padding: .85em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(47, 111, 214, .6); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 24px -8px rgba(47, 111, 214, .7); }
.btn--outline { border-color: var(--blue); color: var(--blue-d); background: transparent; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--blue-d); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(22, 41, 79, .5); }
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); }
.hdr__brand img { height: 46px; width: auto; }
.hdr__burger { display: inline-flex; background: none; border: 0; color: var(--navy); padding: 8px; }

/* ⚠️ ห้ามใส่ backdrop-filter/transform ที่ .hdr — จะทำให้เมนู fixed อ้างอิงกรอบ header แทนหน้าจอ */
.nav { position: fixed; top: var(--hdr); left: 0; right: 0; bottom: 0; background: #fff; padding: 16px; overflow-y: auto; display: none; }
.nav.is-open { display: block; }
.nav__list { list-style: none; }
.nav__item { position: relative; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
.nav__link { display: block; flex: 1; padding: 14px 4px; color: var(--ink); font-weight: 600; }
.nav__link.is-active { color: var(--blue-d); }
.nav__subtoggle { background: none; border: 0; padding: 12px; color: var(--muted); }
.nav__sub { list-style: none; width: 100%; display: none; padding: 0 0 10px 12px; }
.nav__sub.is-open { display: block; }
.nav__sub a { display: block; padding: 8px 4px; color: var(--ink-soft); }
.nav__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-family: var(--font-head); font-size: .85rem; }
.lang a { padding: .35em .8em; color: var(--muted); }
.lang a.is-on { background: var(--navy); color: #fff; }

/* ---------- Hero หน้าแรก ---------- */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, rgba(75, 192, 232, .35), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40% auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 111, 214, .45), transparent 70%); pointer-events: none; }
.hero__in { position: relative; z-index: 1; display: grid; gap: 36px; padding-top: 56px; padding-bottom: 64px; }
.hero__eyebrow { display: inline-block; font-family: var(--font-head); font-size: .85rem; letter-spacing: .02em; color: var(--cyan); background: rgba(75, 192, 232, .12); border: 1px solid rgba(75, 192, 232, .3); padding: .35em .9em; border-radius: 999px; margin-bottom: 1.1em; }
.hero__title { color: #fff; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.2; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: rgba(255, 255, 255, .85); max-width: 40em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero__phone { margin-top: 1em; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.hero__phone a { color: #fff; font-weight: 600; }
.hero__img { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 18px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.stats__item { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); padding: 18px 16px; display: flex; flex-direction: column-reverse; }
.stats__item dt { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.stats__item dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.5rem); line-height: 1.1; background: linear-gradient(135deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Section ---------- */
.sec { padding: 64px 0; }
.sec--tight { padding: 40px 0; }
.sec--alt { background: var(--bg-alt); }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head__eyebrow { color: var(--cyan-d); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: .4em; }
.sec-head__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.sec-head__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.note { color: var(--muted); font-size: .9rem; margin-top: 20px; }
.note--center { text-align: center; }

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* การ์ดบริการ */
.scard { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.scard:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.scard__badge { position: absolute; top: 18px; right: 18px; font-size: .78rem; font-weight: 600; color: #fff; background: var(--grad); padding: .25em .8em; border-radius: 999px; }
.scard__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 16px; background: linear-gradient(135deg, rgba(47, 111, 214, .12), rgba(75, 192, 232, .18)); color: var(--blue-d); margin-bottom: 12px; }
.scard__title { font-size: 1.25rem; margin: 0; }
.scard__text { color: var(--muted); margin: 0; flex: 1; }
.scard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.scard__price { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.scard__more { display: inline-flex; align-items: center; gap: 4px; color: var(--blue-d); font-weight: 600; font-size: .92rem; }

/* ทำไมต้องเรา */
.why { position: relative; background: #fff; border-radius: var(--r); padding: 26px 22px; border: 1px solid var(--line); }
.why__num { position: absolute; top: 18px; right: 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--line); }
.why__icon { color: var(--cyan-d); margin-bottom: 12px; }
.why__title { font-size: 1.1rem; }
.why__text { color: var(--muted); margin: 0; font-size: .97rem; }

/* แถบ Audit */
.band { background: var(--grad); color: #fff; }
.band__in { display: grid; gap: 20px; align-items: center; padding: 40px 16px; }
.band__title { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: .3em; }
.band__text { margin: 0; color: rgba(255, 255, 255, .92); max-width: 46em; }
.band__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.band__price { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }

/* การ์ดผลงาน */
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.pcard__media { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.pcard__body { padding: 18px 20px 22px; }
.pcard__metric { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; line-height: 1.15; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }
.pcard__tag { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--blue-d); background: rgba(47, 111, 214, .1); padding: .2em .7em; border-radius: 999px; margin-bottom: 8px; }
.pcard__title { font-size: 1.08rem; margin: 0 0 4px; }
.pcard__text { color: var(--muted); margin: 0; font-size: .94rem; }

/* โลโก้ลูกค้า */
.logos { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.logos__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); height: 84px; display: flex; align-items: center; justify-content: center; padding: 14px; }
.logos__item img { max-height: 46px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos__item:hover img { filter: none; opacity: 1; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, 1fr); } }

/* คำนิยม */
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.review__icon { color: var(--cyan); }
.review blockquote { margin: 10px 0 14px; color: var(--ink-soft); }
.review figcaption strong { display: block; }
.review figcaption span { color: var(--muted); font-size: .9rem; }

/* การ์ดบทความ */
.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.acard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.acard__tag { font-size: .8rem; font-weight: 600; color: var(--cyan-d); margin-bottom: 6px; }
.acard__title { font-size: 1.12rem; margin: 0 0 8px; }
.acard__text { color: var(--muted); font-size: .95rem; flex: 1; }
.acard__meta { font-size: .85rem; color: var(--muted); }
.pillars { margin-bottom: 20px; }
.pillars .acard { border-color: rgba(47, 111, 214, .35); background: linear-gradient(180deg, #fff, var(--bg-alt)); }

/* FAQ */
.acc { display: grid; gap: 10px; }
.acc__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: none; border: 0; text-align: left; font-weight: 600; color: var(--navy); font-size: 1.02rem; }
.acc__icon { flex: none; color: var(--blue); transition: transform .2s; }
.acc__item.is-open .acc__icon { transform: rotate(45deg); }
.acc__a { display: none; padding: 0 18px 16px; color: var(--ink-soft); }
.acc__item.is-open .acc__a { display: block; }
.faq__group { margin: 28px 0 12px; }
.faq__group:first-child { margin-top: 0; }

/* กล่อง CTA ท้ายหน้า */
.cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 100%); color: #fff; padding: 64px 0; }
.cta__in { display: grid; gap: 32px; align-items: start; }
.cta__title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.cta__text { color: rgba(255, 255, 255, .85); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.cta__qr { display: inline-flex; align-items: center; gap: 14px; background: #fff; color: var(--navy); border-radius: var(--r); padding: 10px 16px 10px 10px; font-weight: 600; }
.cta__qr img { width: 96px; height: 96px; }
.cta__qr--dark { border: 1px solid var(--line); margin-top: 18px; }
.cta__form .lead { background: #fff; color: var(--ink); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-lg); }

/* ฟอร์ม */
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__row { display: grid; gap: 0 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .7em .9em; border: 1px solid #cdd9ea; border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 214, .15); }
.field__err { color: var(--err); font-size: .88rem; margin: 6px 0 0; }
.field__check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; }
.field__check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.req { color: var(--err); }
.lead__ok { display: flex; gap: 12px; align-items: flex-start; background: #ecfdf3; border: 1px solid #bbf7d0; color: #14532d; border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 16px; }
.lead__ok p { margin: 0; }
@media (min-width: 640px) { .lead__row { grid-template-columns: 1fr 1fr; } }

/* ---------- หัวหน้าย่อย ---------- */
.phero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 100%); color: #fff; padding: 48px 0 44px; text-align: center; }
.phero--left { text-align: left; }
.phero__eyebrow { color: var(--cyan); font-family: var(--font-head); font-weight: 600; font-size: .9rem; margin-bottom: .4em; }
.phero__title { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); margin-bottom: .35em; }
.phero__lead { color: rgba(255, 255, 255, .85); font-size: 1.08rem; max-width: 46em; margin: 0 auto; }
.phero--left .phero__lead { margin: 0; }
.phero__meta { color: rgba(255, 255, 255, .7); font-size: .92rem; margin: 0; }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .86rem; margin-bottom: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: rgba(255, 255, 255, .75); }
.crumbs span { color: rgba(255, 255, 255, .95); }
.crumbs .wrap { padding: 0; }

/* หัวหน้าบริการ */
.shero { background: radial-gradient(900px 420px at 90% -20%, rgba(75, 192, 232, .3), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 100%); color: #fff; padding: 40px 0 56px; }
.shero__in { display: grid; gap: 28px; align-items: center; }
.shero__badge { display: inline-block; font-size: .82rem; font-weight: 600; background: var(--grad); padding: .3em .9em; border-radius: 999px; margin-bottom: 12px; }
.shero__title { color: #fff; font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); }
.shero__lead { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }
.shero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.shero__price { margin: 18px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--cyan); }
.shero__price small { font-family: var(--font); font-weight: 400; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.shero__media .ph { background: rgba(255, 255, 255, .95); border-radius: var(--r); box-shadow: var(--shadow-lg); }

.callout { margin: 0; font-size: 1.12rem; color: var(--navy); background: var(--bg-alt); border-left: 4px solid var(--cyan); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 18px 22px; }

.split { display: grid; gap: 36px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* แพ็กเกจ */
.pkgs { display: grid; gap: 18px; }
@media (min-width: 640px) { .pkgs--2, .pkgs--3, .pkgs--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pkgs--3 { grid-template-columns: repeat(3, 1fr); } .pkgs--4 { grid-template-columns: repeat(4, 1fr); } }
.pkgs--1 { max-width: 420px; margin: 0 auto; }
.pkg { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; }
.pkg--rec { border: 2px solid var(--blue); box-shadow: var(--shadow); }
.pkg__rec { position: absolute; top: -13px; left: 22px; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 600; padding: .25em .9em; border-radius: 999px; }
.pkg__name { font-size: 1.15rem; margin-bottom: 10px; }
.pkg__price { margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pkg__amount { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--navy); line-height: 1.1; }
.pkg__unit { color: var(--muted); font-size: .92rem; }
.pkg__extra { display: flex; gap: 6px; align-items: center; font-size: .92rem; color: var(--blue-d); font-weight: 600; margin-bottom: 8px; }
.pkg__for { font-size: .94rem; color: var(--ink-soft); margin-bottom: 8px; }
.pkg__for strong { display: block; font-size: .82rem; color: var(--muted); font-weight: 600; }
.pkg__details { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.pkg .btn { margin-top: auto; }

.addon { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.addon__title { font-size: 1.05rem; }
.addon__text { color: var(--muted); font-size: .95rem; }
.addon__price { font-weight: 600; color: var(--blue-d); font-size: .92rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: .92rem; }
.chip:hover, .chip.is-on { border-color: var(--blue); color: #fff; background: var(--blue); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }

/* เนื้อหายาว */
.prose { color: var(--ink-soft); }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.45rem; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 1.15rem; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); color: var(--navy); }
.prose--article { font-size: 1.06rem; }
.prose--check ul { list-style: none; padding: 0; }
.prose--check li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.prose--check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--grad) center/12px no-repeat; -webkit-mask: none; }
.prose--check li::after { content: ""; position: absolute; left: 7px; top: calc(.35em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.prose--steps ol { list-style: none; padding: 0; counter-reset: s; }
.prose--steps li { counter-increment: s; position: relative; padding: 0 0 18px 50px; margin: 0; }
.prose--steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.prose--steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 4px; width: 2px; background: var(--line); }

.tldr { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 28px; }
.tldr strong { color: var(--blue-d); display: block; margin-bottom: 4px; }
.tldr p { margin: 0; }
.article__cover { border-radius: var(--r); overflow: hidden; margin-bottom: 24px; }

.svcbox { display: grid; gap: 14px; align-items: center; margin-top: 40px; padding: 24px; border-radius: var(--r); background: linear-gradient(135deg, rgba(47, 111, 214, .08), rgba(75, 192, 232, .14)); border: 1px solid rgba(47, 111, 214, .2); }
.svcbox__icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 14px; background: #fff; color: var(--blue-d); }
.svcbox__eyebrow { margin: 0; font-size: .85rem; color: var(--muted); }
.svcbox__title { font-size: 1.2rem; margin: 0 0 4px; }
.svcbox__copy p:last-child { margin: 0; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 720px) { .svcbox { grid-template-columns: auto 1fr auto; } }

/* หน้าผลงาน */
.case { display: grid; gap: 32px; }
.case__media .ph { background: var(--bg-alt); border-radius: var(--r); border: 1px solid var(--line); }
.case__metric { background: var(--bg-alt); border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; }
.case__metric strong { display: block; font-family: var(--font-head); font-size: 2.4rem; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__metric span { color: var(--muted); }
.case__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 18px; }
.case__facts dt { font-size: .82rem; color: var(--muted); }
.case__facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
@media (min-width: 900px) { .case { grid-template-columns: 1.1fr 1fr; align-items: start; } }

/* หน้าติดต่อ */
.contact { display: grid; gap: 32px; }
.cinfo { list-style: none; display: grid; gap: 14px; }
.cinfo li { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-alt); border-radius: var(--r-sm); padding: 14px 16px; }
.cinfo li > .sg-icon { color: var(--blue-d); flex: none; margin-top: 2px; }
.cinfo span { display: block; font-size: .85rem; color: var(--muted); }
.cinfo a, .cinfo p { font-weight: 600; color: var(--navy); margin: 0; }
.contact__form { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.contact__form .h3 { margin-top: 0; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--r); margin-top: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; } }

/* placeholder รูป */
.ph { position: relative; width: 100%; overflow: hidden; background: var(--bg-alt); }
.ph__img { width: 100%; height: 100%; object-fit: cover; }
.ph__img--contain { object-fit: contain; padding: 10px; }
.ph--empty { background: repeating-linear-gradient(45deg, #eef3fa, #eef3fa 10px, #f6f9fd 10px, #f6f9fd 20px); }
.ph__note { position: absolute; inset: auto 8px 8px auto; font-size: .75rem; color: var(--muted); }
.ph__sample { position: absolute; top: 8px; right: 8px; font-size: .72rem; background: rgba(0, 0, 0, .55); color: #fff; padding: .2em .6em; border-radius: 6px; }

/* ---------- Footer ---------- */
.ftr { background: var(--navy-d); color: rgba(255, 255, 255, .75); padding-top: 56px; padding-bottom: 80px; }
.ftr__grid { display: grid; gap: 32px; }
.ftr__logo { height: 52px; width: auto; margin-bottom: 12px; }
.ftr__tag { color: var(--cyan); font-family: var(--font-head); font-weight: 600; margin-bottom: .6em; }
.ftr__about { font-size: .93rem; }
.ftr__h { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr a { color: rgba(255, 255, 255, .8); }
.ftr a:hover { color: #fff; }
.ftr__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; }
.ftr__contact .sg-icon { flex: none; margin-top: 4px; color: var(--cyan); }
.ftr__social { display: flex; gap: 10px; margin-top: 12px; }
.ftr__social a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); }
.ftr__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 18px; font-size: .88rem; }
.ftr__bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ftr__bottom p { margin: 0; }
@media (min-width: 720px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; } .ftr__col--brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } .ftr__col--brand { grid-column: auto; } }

/* ปุ่มลอย */
.cw { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; box-shadow: 0 -6px 20px -10px rgba(0, 0, 0, .3); }
.cw__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; color: #fff; font-weight: 600; }
.cw__btn:hover { color: #fff; }
.cw__btn--line { background: var(--line-green); }
.cw__btn--call { background: var(--navy); }
.totop { position: fixed; right: 16px; bottom: 72px; z-index: 39; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.totop.is-on { opacity: 1; pointer-events: auto; }

/* =========================================================================
   รอบ 2 (7 พ.ย. 2569) — ปรับจากการเทียบเว็บคู่แข่ง
   ========================================================================= */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ช่องตรวจเว็บฟรีในส่วนหัว */
.qc { margin-top: 26px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r); padding: 18px; max-width: 640px; }
.qc__title { margin: 0 0 12px; font-weight: 600; color: #fff; }
.qc__row { display: grid; gap: 10px; }
.qc__row input { width: 100%; font: inherit; padding: .75em 1em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: #fff; color: var(--ink); }
.qc__row input:focus { outline: none; box-shadow: 0 0 0 3px rgba(75, 192, 232, .5); }
.qc__consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.qc__consent input { margin-top: 4px; }
.qc__consent a { color: var(--cyan); }
.qc__note { margin: 6px 0 0; font-size: .84rem; color: rgba(255, 255, 255, .62); }
.qc__ok { display: flex; gap: 8px; align-items: center; color: #bbf7d0; font-weight: 600; margin: 0 0 10px; }
.qc .field__err { color: #fecaca; margin-top: 8px; }
@media (min-width: 640px) { .qc__row { grid-template-columns: 1.4fr 1fr auto; } }
.hero__cta { margin-top: 18px; }
.hero__side .ph { background: transparent; }
.hero__side .ph__img--contain { padding: 0; }

/* แถบตัวเลข */
.statbar { background: var(--navy-d); color: #fff; border-top: 1px solid rgba(255, 255, 255, .08); }
.statbar__in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; }
.statbar__item { display: flex; flex-direction: column-reverse; align-items: center; text-align: center; padding: 10px; }
.statbar__item dt { color: rgba(255, 255, 255, .7); font-size: .88rem; }
.statbar__item dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); line-height: 1.15; background: linear-gradient(135deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 720px) { .statbar__in { grid-template-columns: repeat(4, 1fr); } .statbar__item + .statbar__item { border-left: 1px solid rgba(255, 255, 255, .1); } }

/* แถบโลโก้ลูกค้า (สี) ใต้ส่วนหัว */
.logostrip { padding: 34px 0 10px; }
.logostrip__title { text-align: center; color: var(--muted); font-weight: 600; font-size: .95rem; margin-bottom: 16px; }
.logostrip .logos__item { height: 72px; border-color: transparent; background: transparent; }
.logostrip .logos__item img { filter: none; opacity: 1; max-height: 42px; }

/* การ์ดบริการมีภาพ */
.scard--img { padding: 0; overflow: hidden; gap: 0; }
.scard--img .scard__media { border-bottom: 1px solid var(--line); }
.scard__body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.scard--img .scard__body { padding: 20px 22px 18px; }
.scard--img .scard__badge { z-index: 2; }

/* แถบความคุ้มค่า */
.value { display: grid; gap: 20px; align-items: center; padding: 28px; border-radius: var(--r); background: linear-gradient(135deg, rgba(47, 111, 214, .07), rgba(75, 192, 232, .14)); border: 1px solid rgba(47, 111, 214, .18); }
.value__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin-bottom: .3em; }
.value__text { color: var(--ink-soft); margin-bottom: 12px; }
.value__points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.value__points li { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }
.value__points .sg-icon { color: var(--ok); }
@media (min-width: 900px) { .value { grid-template-columns: 1fr auto; padding: 34px 40px; } }

/* ขั้นตอนทำงาน */
.process { list-style: none; display: grid; gap: 18px; counter-reset: p; }
.process__step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px 22px; }
.process__num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.process__title { font-size: 1.1rem; }
.process__text { color: var(--muted); margin: 0; font-size: .96rem; }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .process { grid-template-columns: repeat(4, 1fr); }
    .process__step:not(:last-child)::after { content: ""; position: absolute; top: 48px; right: -18px; width: 18px; height: 2px; background: var(--cyan); }
}

/* ผู้ก่อตั้ง */
.founder { display: grid; gap: 28px; align-items: center; }
.founder__photo .ph { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.founder__quote { margin: 0 0 14px; font-size: 1.1rem; color: var(--ink-soft); border-left: 4px solid var(--cyan); padding-left: 18px; }
.founder__name { margin-bottom: 18px; }
@media (min-width: 900px) { .founder { grid-template-columns: 340px 1fr; gap: 56px; } }

/* ปกบทความในการ์ด */
.acard__media { border-bottom: 1px solid var(--line); }

/* ---------- Desktop ---------- */
@media (min-width: 1000px) {
    :root { --hdr: 80px; }
    .hdr__brand img { height: 52px; }
    .hdr__burger { display: none; }
    .nav { position: static; padding: 0; background: none; display: flex; align-items: center; gap: 22px; overflow: visible; }
    .nav__list { display: flex; gap: 4px; }
    .nav__item { border: 0; flex-wrap: nowrap; }
    .nav__link { padding: 10px 12px; font-size: .97rem; }
    .nav__link:hover { color: var(--blue-d); }
    .nav__subtoggle { display: none; }
    .nav__sub { display: block; position: absolute; top: 100%; left: 0; min-width: 260px; padding: 10px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
    .nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
    .nav__sub a { padding: 9px 12px; border-radius: 8px; }
    .nav__sub a:hover { background: var(--bg-alt); color: var(--blue-d); }
    .nav__tools { padding: 0; }

    .hero__in { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 88px; padding-bottom: 96px; }
    .sec { padding: 88px 0; }
    .sec--tight { padding: 48px 0; }
    .band__in { grid-template-columns: 1fr auto; padding: 48px 16px; }
    .cta__in { grid-template-columns: 1fr 1.1fr; gap: 56px; }
    .shero { padding: 56px 0 72px; }
    .shero--img .shero__in { grid-template-columns: 1.15fr 1fr; }

    .cw { left: auto; right: 20px; bottom: 20px; grid-auto-flow: row; gap: 10px; box-shadow: none; }
    .cw__btn { border-radius: 999px; padding: 12px 18px; box-shadow: var(--shadow); }
    .totop { bottom: 136px; right: 24px; }
    .ftr { padding-bottom: 40px; }
}

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

/* anchor ของฟอร์มตรวจเว็บฟรี ไม่ให้โดน header บัง */
#quick-check, [id] { scroll-margin-top: 96px; }

/* แถบแจ้งคุกกี้ (PDPA) — มือถืออยู่เหนือแถบ แอดไลน์/โทร */
.ck { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 60px; background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid rgba(143, 216, 242, .35); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); display: grid; gap: 10px; font-size: .9rem; }
.ck[hidden] { display: none; }
.ck__txt { margin: 0; color: rgba(255, 255, 255, .85); line-height: 1.55; }
.ck__txt a { color: #8fd8f2; text-decoration: underline; }
.ck__act { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@media (min-width: 768px) {
    .ck { left: 24px; right: auto; bottom: 24px; max-width: 460px; }
}

/* ===== รอบ 3: ดีไซน์ทันสมัย + วัดผลได้ ===== */
/* หัวข้อส่วนบน: บรรทัดสุดท้ายไล่สี */
.hero__title span { display: block; }
.hero__title .hero__hl { background: linear-gradient(90deg, #8fd8f2 0%, #4bc0e8 45%, #7aa7ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__side { position: relative; }
.hero__side .hero__img { animation: floaty 7s ease-in-out infinite; }
.chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; color: var(--navy); background: rgba(255, 255, 255, .96); padding: .55em 1em; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); white-space: nowrap; }
.chip svg { color: var(--blue); }
.chip--1 { left: -6px; top: 12%; animation: floaty 6s ease-in-out infinite; }
.chip--2 { right: 4px; top: 2%; animation: floaty 7.5s ease-in-out -2s infinite; }
.chip--3 { left: 18%; bottom: 6%; animation: floaty 6.5s ease-in-out -4s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 639px) { .chip--2, .chip--3 { display: none; } .chip--1 { left: 8px; top: 8px; } }

/* โลโก้ลูกค้า: แถบเลื่อนอัตโนมัติ สีเทา → สีจริงตอนชี้ */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logostrip .logos--marquee { display: flex; width: max-content; gap: 48px; animation: marquee 42s linear infinite; padding: 6px 0; }
.logostrip .logos--marquee:hover { animation-play-state: paused; }
.logostrip .logos--marquee .logos__item { flex: none; width: 120px; height: 64px; }
.logostrip .logos--marquee .logos__item img { filter: grayscale(1); opacity: .6; max-height: 44px; transition: filter .25s, opacity .25s; }
.logostrip .logos--marquee .logos__item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* การ์ดผลงาน: กรอบหน้าต่างเบราว์เซอร์ */
.pcard__frame { background: linear-gradient(160deg, #eaf2fc, #f6f9fd); padding: 16px 16px 0; border-bottom: 1px solid var(--line); }
.pcard__bar { display: flex; gap: 6px; background: #fff; border-radius: 10px 10px 0 0; padding: 9px 12px; border: 1px solid var(--line); border-bottom: 0; }
.pcard__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5deeb; }
.pcard__bar i:first-child { background: #ff8a80; } .pcard__bar i:nth-child(2) { background: #ffd180; } .pcard__bar i:nth-child(3) { background: #9be7a8; }
.pcard__frame .pcard__media { border: 1px solid var(--line); border-bottom: 0; background: #fff; }
.pcard__frame .ph__img { object-fit: contain; padding: 14px; transition: transform .4s ease; }
.pcard:hover .pcard__frame .ph__img { transform: scale(1.04); }

/* ทำไมต้องเรา: bento */
.bento { display: grid; gap: 18px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(3, 1fr); } .why--lead { grid-row: span 2; } .bento .why:nth-child(4):last-child { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: 1.3fr 1fr 1fr; } }
.why { transition: transform .2s, box-shadow .2s; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why--lead { background: radial-gradient(500px 260px at 100% 0%, rgba(75, 192, 232, .35), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-d)); border-color: transparent; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; padding: 30px 28px; }
.why--lead .why__title { color: #fff; font-size: 1.45rem; }
.why--lead .why__text { color: rgba(255, 255, 255, .82); font-size: 1.02rem; }
.why--lead .why__icon { color: var(--cyan); width: 44px; height: 44px; }
.why--lead .why__num { color: rgba(255, 255, 255, .14); font-size: 3.4rem; }

/* เราวัดผลยังไง (พื้นน้ำเงินเข้ม) */
.measure { background: radial-gradient(900px 480px at 100% 0%, rgba(75, 192, 232, .22), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-d) 100%); color: #fff; overflow: hidden; }
.measure__in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .measure__in { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.eyebrow { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--blue); margin: 0 0 .5em; }
.eyebrow--light { color: var(--cyan); }
.measure__title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.measure__lead { color: rgba(255, 255, 255, .82); font-size: 1.05rem; }
.measure__list { list-style: none; display: grid; gap: 16px; margin: 26px 0; }
.measure__list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.measure__list strong { color: #fff; font-size: 1.02rem; }
.measure__list p { margin: 2px 0 0; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.measure__icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(75, 192, 232, .14); color: var(--cyan); border: 1px solid rgba(75, 192, 232, .3); }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); padding: .35em .9em; border-radius: 999px; }
.measure__media img { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
@media (min-width: 1000px) { .measure__media { margin-right: -40px; } }

/* เลื่อนมาถึงแล้วค่อยๆ ปรากฏ (เฉพาะเมื่อ JS ทำงาน) */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .rv { opacity: 1; transform: none; }
    .hero__side .hero__img, .chip, .logostrip .logos--marquee { animation: none !important; }
}

/* ===== รอบ 4: animation ลื่นไหล ===== */
/* เปลี่ยนหน้าแบบจางเข้า (เบราว์เซอร์ที่ไม่รองรับจะเปลี่ยนหน้าแบบปกติ) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
.hdr { view-transition-name: site-header; }

/* การ์ดทยอยขึ้นทีละใบ */
.js .rv .st { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0ms), transform .6s ease var(--d, 0ms); }
.js .rv.is-in .st { opacity: 1; transform: none; }

/* FAQ สไลด์เปิด-ปิด */
.acc__a { display: grid; grid-template-rows: 0fr; padding: 0; transition: grid-template-rows .35s ease; }
.acc__item.is-open .acc__a { display: grid; grid-template-rows: 1fr; }
.acc__in { min-height: 0; overflow: hidden; padding: 0 18px; }
.acc__in::after { content: ""; display: block; height: 14px; }
.acc__item { transition: border-color .2s, box-shadow .2s; }
.acc__item.is-open { border-color: rgba(47, 111, 214, .35); box-shadow: 0 10px 24px -18px rgba(22, 41, 79, .5); }

/* ปุ่มหลัก: แสงวิ่งผ่าน + ลูกศรขยับ */
.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); z-index: -1; transition: left .7s ease; pointer-events: none; }
.btn--primary:hover::after { left: 120%; }
.btn svg, .scard__more svg, .acard__more svg { transition: transform .2s ease; }
.btn:hover svg, .scard:hover .scard__more svg { transform: translateX(3px); }
.btn { transition: transform .15s ease, box-shadow .2s, background .2s, color .2s; }
.btn:active { transform: scale(.97); }

/* ขั้นตอนทำงาน: เลขเด้งทีละขั้น + เส้นเชื่อมค่อยๆ ลาก */
.js .rv .process__num { transform: scale(.4); opacity: 0; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1) calc(var(--d, 0ms) + 150ms), opacity .3s ease calc(var(--d, 0ms) + 150ms); }
.js .rv.is-in .process__num { transform: none; opacity: 1; }
@media (min-width: 1000px) {
    .process__step:not(:last-child)::after { transform-origin: left; }
    .js .rv .process__step:not(:last-child)::after { transform: scaleX(0); transition: transform .5s ease calc(var(--d, 0ms) + 450ms); }
    .js .rv.is-in .process__step:not(:last-child)::after { transform: scaleX(1); }
}

/* แสงตามเมาส์บนการ์ดบริการ / ทำไมต้องเรา */
.scard, .why { --mx: 50%; --my: 0%; }
.scard::before, .why::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(75, 192, 232, .16), transparent 60%); }
.why--lead::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgba(143, 216, 242, .22), transparent 60%); }
.scard:hover::before, .why:hover::before { opacity: 1; }

/* แถบความคืบหน้าการอ่าน */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.readbar span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* แดชบอร์ดเคลื่อนไหวส่วนบนสุด (ขนาดย่อ-ขยายตามกล่อง: 1em = 1/120 ของความกว้าง) */
.dash { container-type: inline-size; width: 100%; animation: floaty 7s ease-in-out infinite; }
.dash__in { position: relative; aspect-ratio: 4 / 3; font-size: 4.5px; font-size: .8333cqi; }
.dash__win { position: absolute; left: 2em; top: 6em; width: 98em; height: 70em; background: #fff; border-radius: 2.2em; box-shadow: 0 4em 9em -3em rgba(0, 0, 0, .55); overflow: hidden; }
.dash__bar { height: 5.8em; background: #eef3fa; display: flex; align-items: center; gap: 1em; padding: 0 2.2em; border-bottom: 1px solid #e2ebf5; }
.dash__bar i { width: 1.4em; height: 1.4em; border-radius: 50%; background: #cdd9ea; }
.dash__bar b { margin-left: 1.6em; font-family: var(--font-head); font-size: 2em; color: var(--navy); }
.dash__bar em { margin-left: auto; font-style: normal; font-size: 1.6em; color: #5d7190; background: #fff; border: 1px solid #e2ebf5; padding: .25em .8em; border-radius: 999px; display: inline-flex; align-items: center; gap: .45em; }
.dash__live { width: .55em; height: .55em; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { to { box-shadow: 0 0 0 .7em rgba(22, 163, 74, 0); } }
.dash__body { padding: 3em; }
.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2em; }
.dash__k { background: #f2f7fc; border-radius: 1.6em; padding: 2em; position: relative; height: 13em; overflow: hidden; }
.dash__k small { font-size: 2em; color: #33456a; }
.dash__k strong { position: absolute; right: 1.8em; top: 1.6em; color: #16a34a; font-size: 2.2em; }
.dash__spark { position: absolute; left: 2em; right: 2em; bottom: 1.8em; height: 4.8em; border-radius: .8em; transform-origin: bottom; animation: sparkin 1s ease both; }
.dash__spark.s1 { background: linear-gradient(90deg, rgba(47, 111, 214, .15), rgba(47, 111, 214, .55)); clip-path: polygon(0 80%, 20% 70%, 40% 75%, 60% 45%, 80% 35%, 100% 5%, 100% 100%, 0 100%); }
.dash__spark.s2 { background: linear-gradient(90deg, rgba(75, 192, 232, .15), rgba(75, 192, 232, .7)); clip-path: polygon(0 85%, 25% 60%, 45% 65%, 65% 40%, 85% 30%, 100% 10%, 100% 100%, 0 100%); animation-delay: .15s; }
.dash__spark.s3 { background: linear-gradient(90deg, rgba(22, 41, 79, .12), rgba(22, 41, 79, .5)); clip-path: polygon(0 90%, 20% 80%, 45% 60%, 60% 55%, 80% 25%, 100% 15%, 100% 100%, 0 100%); animation-delay: .3s; }
@keyframes sparkin { from { transform: scaleY(0); opacity: 0; } }
.dash__chart { position: relative; margin-top: 2.4em; height: 33em; border: 1px solid #e2ebf5; border-radius: 1.6em; padding: 2.2em 2.6em; }
.dash__lbl { font-weight: 600; font-size: 2em; color: var(--navy); }
.dash__bars { position: absolute; left: 2.6em; right: 2.6em; bottom: 2.4em; top: 7em; display: flex; align-items: flex-end; gap: 1.4em; }
.dash__bars i { flex: 1; background: linear-gradient(180deg, #2f6fd6, #4bc0e8); border-radius: .8em .8em .3em .3em; opacity: .9; transform-origin: bottom; animation: barup .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.35s + var(--i) * 70ms); }
.dash__bars i:last-child { animation: barup .7s cubic-bezier(.2, .8, .2, 1) both 1.15s, barglow 2.4s ease-in-out 2s infinite; }
@keyframes barup { from { transform: scaleY(0); } }
@keyframes barglow { 50% { filter: brightness(1.18); } }
.dash__line { position: absolute; left: 2.6em; right: 2.6em; top: 7em; bottom: 2.4em; width: calc(100% - 5.2em); height: calc(100% - 9.4em); overflow: visible; }
.dash__line path { fill: none; stroke: #4bc0e8; stroke-width: 4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease forwards 1.1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dash__chips { display: flex; gap: 1.2em; margin-top: 2.2em; }
.dash__chips span { font-size: 1.7em; font-weight: 600; color: #1d4fa8; background: rgba(47, 111, 214, .1); padding: .45em .95em; border-radius: 999px; }
.dash__phone { position: absolute; right: 3em; bottom: 4em; width: 30em; height: 56em; background: var(--navy-d); border-radius: 4.4em; padding: 1.6em; box-shadow: 0 4em 8em -2.5em rgba(0, 0, 0, .6); border: .6em solid #1b2f5a; }
.dash__notch { width: 11em; height: 2.4em; background: #1b2f5a; border-radius: 0 0 1.6em 1.6em; margin: -1.6em auto 1em; }
.dash__head { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 2em; background: #06c755; margin: 0 -.5em .9em; padding: .55em .9em; border-radius: .7em; }
.dash__msg { font-size: 1.7em; line-height: 1.45; padding: .7em .9em; border-radius: .95em; margin: 0 0 .7em; max-width: 85%; opacity: 0; transform: translateY(.8em) scale(.96); animation: msgin .45s ease forwards; animation-delay: calc(1.6s + var(--m) * 1.1s); }
.dash__msg.in { background: #fff; color: #15294c; border-bottom-left-radius: .25em; }
.dash__msg.out { background: #4bc0e8; color: #0e1c38; margin-left: auto; border-bottom-right-radius: .25em; }
@keyframes msgin { to { opacity: 1; transform: none; } }
.dash__lead { position: absolute; left: 2.4em; right: 2.4em; bottom: 2.6em; text-align: center; font-weight: 700; font-size: 2em; color: #fff; background: var(--grad); padding: .6em; border-radius: .7em; opacity: 0; transform: scale(.6); animation: leadpop .5s cubic-bezier(.34, 1.56, .64, 1) forwards 5.2s; }
@keyframes leadpop { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .js .rv .st, .js .rv .process__num { opacity: 1 !important; transform: none !important; }
    .dash, .dash *, .btn--primary::after { animation: none !important; }
    .dash__msg, .dash__lead { opacity: 1; transform: none; }
    .dash__line path { stroke-dashoffset: 0; }
    .acc__a { transition: none; }
}

/* หัวข้อส่วนบน: ให้บรรทัดแรกพอดีหนึ่งบรรทัดบนจอคอม */
.hero__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.05rem); }

/* หัวหน้าบริการ: ภาพหน้าจอพื้นใส วางบนพื้นน้ำเงินตรงๆ ไม่ต้องมีกรอบขาว และให้ภาพใหญ่ขึ้น */
.shero__media .ph { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.shero__media .ph__img--contain { padding: 0; }
@media (min-width: 1000px) {
    .shero--img .shero__in { grid-template-columns: 1fr 1.2fr; gap: 40px; }
    .shero__media { margin-right: -40px; }
}

/* ===== เครื่องประเมินราคาทำเว็บ ===== */
.calc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px 26px; box-shadow: 0 30px 60px -40px rgba(22, 41, 79, .45); }
.calc__progress { height: 6px; border-radius: 3px; background: var(--bg-alt); overflow: hidden; margin-bottom: 14px; }
.calc__progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.calc__step { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.calc__q { border: 0; padding: 0; margin: 0; animation: calcin .35s ease; }
@keyframes calcin { from { opacity: 0; transform: translateX(14px); } }
.calc__title { font-family: var(--font-head); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.calc__hint { color: var(--muted); margin: 0 0 14px; font-size: .95rem; }
.calc__opts { display: grid; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .calc__opts--few { grid-template-columns: repeat(3, 1fr); } .calc__opts--many { grid-template-columns: repeat(2, 1fr); } }
.opt { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .15s; font: inherit; color: var(--ink); }
.calc__opts--few .opt { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 6px; padding: 22px 16px; }
.opt:hover { border-color: rgba(47, 111, 214, .5); transform: translateY(-2px); box-shadow: 0 14px 28px -20px rgba(22, 41, 79, .6); }
.opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 214, .15); background: #f7faff; }
.opt__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(47, 111, 214, .12), rgba(75, 192, 232, .18)); color: var(--blue-d); }
.calc__opts--few .opt__icon { grid-row: auto; width: 52px; height: 52px; }
.opt__t { font-weight: 700; color: var(--navy); }
.opt__d { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.opt__tick { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; display: none; align-items: center; justify-content: center; }
.opt[aria-pressed="true"] .opt__tick { display: inline-flex; }
.calc__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.calc__result { animation: calcin .4s ease; text-align: center; }
.calc__eyebrow { color: var(--blue); font-weight: 600; margin: 6px 0 4px; }
.calc__pack { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); margin: 0; }
.calc__why { color: var(--muted); margin: 6px 0 14px; }
.calc__price { display: inline-flex; align-items: baseline; gap: 10px; background: linear-gradient(135deg, rgba(47, 111, 214, .08), rgba(75, 192, 232, .12)); border-radius: 18px; padding: 14px 26px; }
.calc__price b { font-family: var(--font-head); font-size: clamp(2rem, 1.6rem + 2vw, 3rem); line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__price span { color: var(--muted); font-size: .95rem; }
.calc__note { margin: 12px 0 0; color: var(--ink-soft); font-size: .95rem; }
.calc__addons { list-style: none; max-width: 520px; margin: 18px auto 0; display: grid; gap: 8px; text-align: left; }
.calc__addons li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg-alt); font-size: .95rem; }
.calc__addons b { color: var(--navy); white-space: nowrap; }
.calc__fine { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.calc__form { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); text-align: left; }
.calc__formtitle { font-weight: 600; color: var(--navy); margin: 0 0 12px; }
.calc__row { display: grid; gap: 10px; }
@media (min-width: 640px) { .calc__row { grid-template-columns: 1fr 1fr auto; } }
.calc__row input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .8em 1em; font: inherit; }
.calc__row input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 111, 214, .15); }
.calc__consent { color: var(--muted); margin-top: 10px; }
.calc__consent a { color: var(--blue-d); }
.calc__again { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.calc .btn--outline { color: var(--blue-d); }

/* กล่องชวนประเมินราคาในบทความ + ปุ่มคู่ในแถบความคุ้มค่า */
.calcbox { display: grid; gap: 16px; align-items: center; margin: 32px 0; padding: 26px; border-radius: 20px; color: #fff; background: radial-gradient(500px 220px at 100% 0%, rgba(75, 192, 232, .35), transparent 60%), linear-gradient(150deg, var(--navy), var(--navy-d)); }
@media (min-width: 720px) { .calcbox { grid-template-columns: 1fr auto; padding: 28px 32px; } }
.calcbox__eyebrow { color: var(--cyan); font-weight: 600; margin: 0 0 2px; font-size: .9rem; }
.calcbox__title { color: #fff; font-size: 1.35rem; margin: 0 0 4px; }
.calcbox p { margin: 0; color: rgba(255, 255, 255, .8); }
.value__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ตารางเทียบทางเลือก */
.cmp { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.cmp__t { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
.cmp__t th, .cmp__t td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cmp__t tbody tr:last-child th, .cmp__t tbody tr:last-child td { border-bottom: 0; }
.cmp__t thead th { font-family: var(--font-head); color: var(--navy); background: var(--bg-alt); font-size: 1rem; }
.cmp__t thead th.is-us { background: var(--grad); color: #fff; }
.cmp__t tbody th { font-weight: 600; color: var(--navy); width: 30%; }
.cmp__t td.is-us { background: rgba(47, 111, 214, .05); }
.cmp__v { display: inline-flex; align-items: center; gap: 7px; }
.cmp__v--y { color: #15803d; font-weight: 600; } .cmp__v--p { color: #b45309; } .cmp__v--n { color: #94a3b8; }
.cmp__cta { margin-top: 26px; }

/* หน้าขอบคุณ */
.thanks { background: radial-gradient(900px 420px at 50% -10%, rgba(75, 192, 232, .3), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-d)); color: #fff; padding: 64px 0 72px; text-align: center; }
.thanks__check { width: 92px; height: 92px; margin: 0 auto 18px; }
.thanks__check svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thanks__check circle { stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: tk .7s ease forwards; }
.thanks__check path { stroke: #fff; stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tk .45s ease forwards .55s; }
@keyframes tk { to { stroke-dashoffset: 0; } }
.thanks__title { color: #fff; font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
.thanks__lead { color: rgba(255, 255, 255, .85); font-size: 1.08rem; max-width: 36em; margin: 0 auto; }
.thanks__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.thanks__steps { list-style: none; display: grid; gap: 14px; margin: 40px auto 0; text-align: left; max-width: 760px; }
@media (min-width: 720px) { .thanks__steps { grid-template-columns: repeat(3, 1fr); } }
.thanks__steps li { display: flex; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 16px; }
.thanks__steps span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.thanks__steps b { color: #fff; } .thanks__steps p { margin: 4px 0 0; color: rgba(255, 255, 255, .72); font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .thanks__check circle, .thanks__check path { animation: none; stroke-dashoffset: 0; } .calc__q, .calc__result { animation: none; } }

/* แถบ Audit: ลิงก์ตรวจเบื้องต้นฟรี */
.band__free { flex-basis: 100%; color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; opacity: .92; }
.band__free:hover { color: #fff; opacity: 1; }
@media (min-width: 900px) { .band__cta { flex-wrap: wrap; justify-content: flex-end; } .band__free { text-align: right; } }

/* บริการเสริม: ราคาตามขอบเขตงาน + ลิงก์สอบถามราคา */
.addon { display: flex; flex-direction: column; }
.addon__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed var(--line); }
.addon__note { font-size: .88rem; color: var(--muted); }
.addon__ask { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue-d); }
.addon__ask svg { transition: transform .2s; }
.addon__ask:hover svg { transform: translateX(3px); }
