/* =====================================================================
   YMWEBSEO — Stylesheet หลัก (HTML/CSS ล้วน ไม่ใช้เฟรมเวิร์ก)
   สีแบรนด์มาจากเว็บไซต์เดิม: น้ำเงินเข้ม #043E61 / ฟ้าโลโก้ #60B0F4
   แนวทาง UI/UX: Minimal & Swiss (ui-ux-pro-max) — คอนทราสต์ 4.5:1,
   ปุ่มแตะขนาด ≥ 44px, focus ชัดเจน, รองรับ prefers-reduced-motion
   ===================================================================== */

:root {
    /* Brand */
    --brand: #043e61;          /* น้ำเงินหลัก (ปุ่ม/หัวข้อ) */
    --brand-700: #032f4a;
    --brand-600: #0a5585;
    --sky: #60b0f4;            /* ฟ้าโลโก้ — ใช้กับพื้นหลัง/ตกแต่ง ไม่ใช้เป็นสีตัวอักษรบนพื้นขาว */
    --sky-100: #eaf4fd;
    --sky-200: #d5eafc;
    --link: #0b62a4;           /* ฟ้าเข้ม ผ่าน 4.5:1 บนพื้นขาว */
    --red: #b20000;            /* ไฮไลต์ราคา / โปรโมชัน */
    --red-100: #fdeaea;
    --line-green: #06c755;
    --line-green-dark: #04a446;

    /* Neutral */
    --ink: #0f2233;
    --body: #33475b;
    --muted: #5b6d7e;
    --line: #dfe7ee;
    --bg: #f5f8fb;
    --surface: #ffffff;

    /* Feedback */
    --success: #0f7b4b;
    --success-100: #e6f6ee;
    --danger: #b42318;
    --danger-100: #fdecea;
    --warning-100: #fff5df;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(4, 62, 97, .06), 0 2px 8px rgba(4, 62, 97, .05);
    --shadow: 0 12px 32px rgba(4, 62, 97, .10);
    --shadow-lg: 0 24px 60px rgba(4, 62, 97, .16);
    --container: 1200px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);

    --font-head: "Anuphan", "Leelawadee UI", Tahoma, sans-serif;
    --font-body: "Anuphan", "Leelawadee UI", Tahoma, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
button, a, summary, label[for], select { cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong { color: var(--ink); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    min-height: 48px; padding: .7em 1.4em;
    font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; line-height: 1.2;
    border-radius: 999px; border: 2px solid transparent;
    text-decoration: none; white-space: nowrap;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: .5em 1.05em; font-size: .97rem; }
.btn--lg { min-height: 56px; padding: .8em 1.7em; font-size: 1.1rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(4, 62, 97, .22); }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--line { background: var(--line-green); color: #fff; box-shadow: 0 8px 20px rgba(6, 199, 85, .22); }
.btn--line:hover { background: var(--line-green-dark); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--sky-100); color: var(--brand); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-family: var(--font-head); font-weight: 500; text-decoration: none; min-height: 44px; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; background: var(--sky-100); color: var(--brand); }
.chip--red { background: var(--red-100); color: var(--red); }
.chip--green { background: var(--success-100); color: var(--success); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 168px; height: auto; }
.brand--footer img { width: 190px; background: #fff; border-radius: 12px; padding: 8px 12px; }

.nav-toggle {
    display: none; width: 48px; height: 48px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--brand);
    align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 14px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-family: var(--font-head); font-weight: 400; font-size: 1.02rem;
}
.nav-link:hover { background: var(--sky-100); color: var(--brand); }
.nav-link.is-active { color: var(--brand); font-weight: 500; box-shadow: inset 0 -3px 0 var(--sky); border-radius: 10px 10px 4px 4px; }
.nav-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.submenu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
    list-style: none; margin: 0; padding: 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-item:hover > .nav-link .icon, .nav-item:focus-within > .nav-link .icon { transform: rotate(180deg); }
.submenu a {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px;
    color: var(--ink); text-decoration: none; font-weight: 500;
}
.submenu a:hover, .submenu a[aria-current] { background: var(--sky-100); color: var(--brand); }
.submenu .icon { color: var(--brand); }
.nav-actions { display: flex; gap: 10px; }

@media (max-width: 1100px) { .nav-actions .btn--ghost { display: none; } }

@media (max-width: 960px) {
    .site-header { background: var(--surface); }
    .nav-toggle { display: inline-flex; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 0 0;
        flex-direction: column; align-items: stretch; gap: 18px;
        padding: 16px 20px 32px; background: var(--surface); border-top: 1px solid var(--line);
        overflow-y: auto; overscroll-behavior: contain;
        opacity: 0; visibility: hidden; transform: translateY(-8px);
        transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    }
    .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav-list { flex-direction: column; }
    .nav-link { width: 100%; min-height: 52px; padding: 12px 14px; font-size: 1.12rem; }
    .nav-link.is-active { box-shadow: none; background: var(--sky-100); border-radius: 10px; }
    .nav-link .icon { display: none; }
    .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 4px 14px; min-width: 0; background: transparent; }
    .submenu a { font-weight: 400; color: var(--body); }
    .nav-actions { flex-direction: column; }
    .nav-actions .btn { width: 100%; }
    .nav-actions .btn--ghost { display: inline-flex; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--bg); }
.section--sky { background: linear-gradient(180deg, var(--sky-100), var(--surface)); }
.section--brand { background: var(--brand); color: #d6e6f3; }
.section--brand h2, .section--brand h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--brand .section-head p { color: #c4d9ea; }
.section-foot { margin-top: 40px; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
    font-family: var(--font-head); font-size: .95rem; font-weight: 500; letter-spacing: .02em; color: var(--link);
}
.eyebrow::before { content: ""; width: 24px; height: 3px; background: var(--sky); border-radius: 3px; }
.section--brand .eyebrow { color: var(--sky); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 104px);
    background:
        radial-gradient(800px 420px at 90% 0%, rgba(96,176,244,.28), transparent 60%),
        radial-gradient(600px 360px at 0% 100%, rgba(96,176,244,.16), transparent 60%),
        var(--surface);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--brand-600); display: block; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; padding: 0; margin: 0; }
.trust-row li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.trust-row .icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--sky-100); color: var(--brand); }

.promo-stack { display: grid; gap: 16px; }
.promo {
    position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
    padding: 22px 24px; border-radius: var(--radius-lg); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow);
    text-decoration: none; color: var(--body);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--sky); color: var(--body); }
.promo-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: #fff; }
.promo-icon .icon { width: 26px; height: 26px; }
.promo-kicker { font-size: .88rem; color: var(--link); font-weight: 500; margin: 0 0 2px; }
.promo h2 { font-size: 1.12rem; margin: 0 0 4px; }
.promo p:last-child { margin: 0; font-size: .95rem; color: var(--muted); }
.promo .chip { position: absolute; top: -12px; right: 18px; box-shadow: var(--shadow-sm); }
.promo--feature { background: var(--brand); border-color: var(--brand); color: #d6e6f3; }
.promo--feature:hover { color: #d6e6f3; border-color: var(--sky); }
.promo--feature h2 { color: #fff; }
.promo--feature .promo-kicker { color: var(--sky); }
.promo--feature p:last-child { color: #c4d9ea; }
.promo--feature .promo-icon { background: var(--sky); color: var(--brand); }

@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* ---------- Cards ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 30px; height: 100%;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--sky-100); color: var(--brand); margin-bottom: 18px; }
.card-icon .icon { width: 28px; height: 28px; }

.service-card { display: flex; flex-direction: column; position: relative; }
.service-card:hover { transform: translateY(-4px); border-color: var(--sky); }
.service-card .price { font-family: var(--font-head); font-weight: 500; color: var(--red); margin: -4px 0 12px; }
.service-card .check-list { margin: 4px 0 24px; font-size: .98rem; }
.service-card .btn { margin-top: auto; }
.service-card--featured { border: 2px solid var(--brand); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--success); margin-top: .35em; }
.x-list .icon { color: var(--red); }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .card-icon { flex-shrink: 0; margin: 0; width: 50px; height: 50px; border-radius: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .25em; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.section--brand .feature p { color: #c4d9ea; }
.section--brand .feature .card-icon { background: rgba(96,176,244,.18); color: var(--sky); }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: var(--radius); padding: 26px 24px 22px; border: 1px solid var(--line); counter-increment: step; }
.step::before {
    content: counter(step);
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; margin-bottom: 14px;
    background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
    box-shadow: 0 0 0 6px var(--sky-100);
}
.step h3 { font-size: 1.1rem; margin-bottom: .25em; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; gap: 16px; }
.review .stars { display: flex; gap: 2px; color: #f5a524; }
.review .stars .icon { width: 18px; height: 18px; fill: currentColor; }
.review blockquote { margin: 0; font-size: 1.05rem; color: var(--ink); }
.review footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--font-head); }
.review cite { font-style: normal; font-weight: 600; color: var(--ink); display: block; }
.review small { color: var(--muted); }

/* ---------- Portfolio ---------- */
.work-card {
    background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line); display: flex; flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card[hidden] { display: none; }
.work-media { position: relative; aspect-ratio: 433 / 400; background: var(--bg); overflow: hidden; display: block; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.03); }
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.12rem; }
.work-body h3 a { color: var(--ink); text-decoration: none; }
.work-body h3 a:hover { color: var(--brand); }
.work-body p { color: var(--muted); font-size: .97rem; }
.work-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(4,62,97,.88); color: #fff; }
.tag-list { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list li { font-size: .82rem; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.work-body .link-arrow { margin-top: 10px; }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.filter-btn, .filter-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    font: inherit; font-weight: 500; font-size: .95rem; text-decoration: none;
    padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    transition: background-color .2s, border-color .2s, color .2s;
}
.filter-btn:hover, .filter-link:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn[aria-pressed="true"], .filter-link[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-link .count { font-size: .8rem; opacity: .75; }

/* Work detail */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; word-break: break-word; }

/* ---------- Blog ---------- */
.post-card {
    background: var(--surface); border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16 / 9; background: var(--sky-100); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.12rem; }
.post-body h3 a { color: var(--ink); text-decoration: none; }
.post-body h3 a:hover { color: var(--brand); }
.post-body > p:not(.post-meta) { color: var(--muted); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-body .link-arrow { margin-top: auto; }
.post-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: .6em; }
.post-meta .icon { width: 16px; height: 16px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; list-style: none; padding: 0; }
.pagination a, .pagination span {
    display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px;
    border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Article / content pages ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 32px; background: var(--sky-100); }
.article-cover img { width: 100%; height: auto; }
.prose { color: var(--body); font-size: 1.08rem; line-height: 1.85; overflow-wrap: anywhere; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; padding-top: .2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.5em; }
.prose h4 { margin-top: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: .9rem; color: var(--muted); text-align: center; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--sky); background: var(--sky-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .97rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--sky-100); color: var(--ink); }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-box h2 { font-size: 1.15rem; }
.aside-box--brand { background: var(--brand); color: #d6e6f3; border: 0; }
.aside-box--brand h2 { color: #fff; }
.aside-box--brand .btn { width: 100%; margin-top: 10px; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-links a { display: block; padding: 8px 0; text-decoration: none; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links a:hover { color: var(--link); }
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; }
}

/* ---------- Page hero ---------- */
.page-hero {
    padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 60px);
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(96,176,244,.26), transparent 60%),
        var(--sky-100);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); max-width: 900px; }
.page-hero .lead { color: var(--body); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .92rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #9fb1c1; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-hero .hero-actions { margin: 24px 0 0; }

/* ---------- Service detail ---------- */
.service-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.service-layout .article-aside { top: calc(var(--header-h) + 24px); }
@media (max-width: 1024px) { .service-layout { grid-template-columns: 1fr; } .service-layout .article-aside { position: static; } }
.content-block + .content-block { margin-top: 56px; }
.content-block > h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.callout { padding: 22px 26px; border-radius: var(--radius); background: var(--sky-100); border-left: 4px solid var(--brand); color: var(--ink); }
.callout--red { background: var(--red-100); border-color: var(--red); }
.callout p:last-child { margin: 0; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pills li { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; color: var(--ink); }

.numbered { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: n; }
.numbered > li { counter-increment: n; position: relative; padding: 20px 22px 20px 72px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.numbered > li::before {
    content: counter(n); position: absolute; left: 20px; top: 20px;
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
    background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 600;
}
.numbered h3 { font-size: 1.08rem; margin-bottom: .3em; }
.numbered p, .numbered ul { margin: 0; color: var(--muted); font-size: .98rem; }
.numbered ul { margin-top: 6px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-card .amount { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--brand); line-height: 1.2; margin: 6px 0 2px; }
.price-card .amount small { font-size: .95rem; font-weight: 400; color: var(--muted); }
.price-card .check-list { margin: 16px 0 22px; font-size: .96rem; }
.price-card .btn { margin-top: auto; }
.price-card--popular { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-card--popular .chip { position: absolute; top: -13px; left: 24px; background: var(--brand); color: #fff; }

.price-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table thead th { background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 500; }
.price-table td:last-child { font-family: var(--font-head); font-weight: 600; color: var(--red); white-space: nowrap; text-align: right; }
.price-table thead th:last-child { text-align: right; }
@media (max-width: 560px) { .price-table th, .price-table td { padding: 12px 14px; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: var(--sky); }
.faq summary { list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: var(--font-head); font-weight: 500; color: var(--ink); min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--brand); color: #d6e6f3; padding: clamp(48px, 7vw, 84px) 0; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(96,176,244,.4), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: #c4d9ea; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }
@media (max-width: 520px) { .cta-actions .btn { width: 100%; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; }
.contact-card {
    display: flex; gap: 16px; align-items: center; padding: 18px 20px; min-height: 76px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; color: var(--body); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
a.contact-card:hover { border-color: var(--sky); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--body); }
.contact-card .card-icon { margin: 0; width: 48px; height: 48px; border-radius: 14px; }
.contact-card--line .card-icon { background: #e6f9ee; color: var(--line-green-dark); }
.contact-card strong { display: block; font-family: var(--font-head); font-weight: 500; }
.contact-card span { color: var(--muted); font-size: .96rem; word-break: break-word; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-weight: 600; font-size: .96rem; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: .86rem; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 48px; font: inherit; font-size: 1rem; color: var(--ink);
    padding: 11px 14px; border: 1.5px solid #c7d4e0; border-radius: 12px; background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(96,176,244,.3); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { display: none; margin: 6px 0 0; font-size: .9rem; color: var(--danger); }
.field.has-error .field-error { display: flex; gap: 6px; align-items: center; }
.field-hint { font-size: .86rem; color: var(--muted); margin: 4px 0 0; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; font-weight: 400 !important; }
.check-field input { width: 22px; height: 22px; min-height: 0; margin-top: .25em; accent-color: var(--brand); flex-shrink: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 20px; border-radius: 12px; margin-bottom: 22px; border-left: 4px solid; }
.notice--success { background: var(--success-100); border-color: var(--success); color: #0b5235; }
.notice--error { background: var(--danger-100); border-color: var(--danger); color: #7a1a12; }
.notice--warning { background: var(--warning-100); border-color: #d99a06; color: #5f4200; }
.notice--info { background: var(--sky-100); border-color: var(--brand); color: var(--brand); }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-700); color: #b7cde0; padding: 64px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-about p { margin-top: 16px; max-width: 360px; }
.footer-title { color: #fff; font-size: 1.08rem; margin-bottom: 14px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a, .footer-contact a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a { color: #dce9f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { color: var(--sky); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); }
.social a:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 20px 24px; font-size: .9rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Quick contact bar (mobile) ---------- */
.quick-contact { display: none; }
@media (max-width: 960px) {
    body { padding-bottom: 68px; }
    .quick-contact {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        background: var(--surface); border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(4,62,97,.08);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .quick-contact__item {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        min-height: 62px; text-decoration: none; color: var(--brand); font-size: .86rem; font-weight: 600;
    }
    .quick-contact__item .icon { width: 22px; height: 22px; }
    .quick-contact__item--line { background: var(--line-green); color: #fff; }
    .quick-contact__item--line:hover { color: #fff; }
    body.nav-open .quick-contact { display: none; }
}

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* =====================================================================
   v2 — เลย์เอาต์แบบ landing page (หัวข้อกลาง, mockup อุปกรณ์, section มืด,
   การ์ดแพ็กเกจหัวสี, ขั้นตอนมีลูกศร, FAQ 2 คอลัมน์, ปุ่มแชทลอย)
   ใช้สีแบรนด์ YMWEBSEO ทั้งหมด
   ===================================================================== */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.005em; }
.hl { color: var(--brand-600); }
.grad-text {
    background: linear-gradient(90deg, var(--sky) 0%, var(--brand-600) 55%, var(--brand) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand-700); color: #c4d9ea; font-size: .88rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: #e3eef8; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 16px; height: 16px; color: var(--sky); }
.topbar-links { display: flex; gap: 20px; }
@media (max-width: 760px) { .topbar-tagline { display: none; } .topbar-inner { justify-content: center; } }
@media (max-width: 420px) { .topbar-links .hide-xs { display: none; } }

/* ---------- Hero (กลางจอ) ---------- */
.hero--center { text-align: center; padding-bottom: clamp(32px, 5vw, 64px); }
.hero--center h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.22; margin-bottom: .25em; }
.hero--center .hero-sub { font-family: var(--font-head); font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 600; color: var(--ink); margin: 0 0 22px; line-height: 1.45; }
.hero--center .hero-sub .price { color: var(--red); }
.hero--center .lead { margin: 0 auto 26px; }
.hero--center .hero-actions { justify-content: center; margin-bottom: 22px; }
.rating { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; text-align: left; }
.avatars { display: flex; }
.avatars span {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
    background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
    border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--brand-600); }
.avatars span:nth-child(3) { background: var(--sky); color: var(--brand); }
.avatars span:nth-child(4) { background: var(--line-green); }
.rating .stars { display: flex; gap: 1px; color: #f5a524; }
.rating .stars .icon { width: 17px; height: 17px; fill: currentColor; }
.rating small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.3; }

/* Showcase: laptop + phone mockup */
.showcase {
    position: relative; margin: 8px auto 0; max-width: 1100px;
    border-radius: 32px; padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 56px) clamp(24px, 4vw, 48px);
    background:
        radial-gradient(600px 300px at 15% 0%, rgba(96,176,244,.55), transparent 60%),
        radial-gradient(700px 360px at 100% 100%, rgba(10,85,133,.85), transparent 60%),
        linear-gradient(135deg, var(--brand-600), var(--brand));
    overflow: hidden;
}
.showcase::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; pointer-events: none; }
.device-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.laptop { position: relative; width: min(760px, 86%); }
.laptop-screen { background: #0b1b29; border-radius: 16px 16px 0 0; padding: 12px 12px 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.laptop-screen .bar { display: flex; gap: 6px; margin-bottom: 10px; }
.laptop-screen .bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a5368; }
.laptop-screen .bar i:first-child { background: #f28b82; }
.laptop-screen .bar i:nth-child(2) { background: #f2b33d; }
.laptop-screen .bar i:nth-child(3) { background: #34c38f; }
.laptop-screen img { width: 100%; aspect-ratio: 16 / 9.5; object-fit: cover; object-position: top; border-radius: 6px; background: #fff; }
.laptop-base { height: 16px; margin: 0 -6%; background: linear-gradient(180deg, #d9e2ea, #a9b8c6); border-radius: 0 0 18px 18px; box-shadow: 0 18px 30px rgba(0,0,0,.25); }
.laptop-base::after { content: ""; display: block; width: 16%; height: 6px; margin: 0 auto; background: #93a4b4; border-radius: 0 0 8px 8px; }
.phone {
    position: absolute; right: max(2%, calc(50% - 440px)); bottom: -6px; width: clamp(110px, 17%, 170px);
    background: #0b1b29; border-radius: 26px; padding: 10px 8px; box-shadow: 0 24px 50px rgba(0,0,0,.4);
}
.phone::before { content: ""; display: block; width: 34%; height: 6px; margin: 0 auto 8px; border-radius: 6px; background: #22384b; }
.phone img { width: 100%; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; border-radius: 16px; background: #fff; }
.showcase-badges { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.showcase-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-weight: 500; font-size: .95rem; }
.showcase-badges .icon { color: var(--sky); }
@media (max-width: 600px) { .phone { width: 92px; border-radius: 18px; padding: 7px 5px; right: 0; } .laptop { width: 92%; } }

/* ---------- Highlight cards (เอียงเล็กน้อย) ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.highlight {
    position: relative; min-height: 250px; padding: 26px; border-radius: 26px; color: #fff; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    background: linear-gradient(160deg, var(--sky) 0%, var(--brand-600) 55%, var(--brand) 100%);
    box-shadow: var(--shadow); transition: transform .3s var(--ease);
}
.highlight:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.highlight:nth-child(2) { transform: translateY(-8px); background: linear-gradient(160deg, #1d7fc6 0%, var(--brand) 70%); }
.highlight:nth-child(3) { transform: rotate(3deg) translateY(10px); }
.highlight:hover { transform: rotate(0deg) translateY(-6px); }
.highlight .check { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--brand-600); box-shadow: var(--shadow-sm); }
.highlight .check .icon { width: 18px; height: 18px; stroke-width: 3; }
.highlight .big-icon { position: absolute; right: -14px; top: 18px; width: 120px; height: 120px; opacity: .18; }
.highlight h3 { color: #fff; font-size: 1.45rem; margin: 0 0 6px; }
.highlight p { margin: 0; color: #d6e8f7; font-size: .97rem; }
@media (max-width: 860px) {
    .highlights { grid-template-columns: 1fr; max-width: 460px; }
    .highlight, .highlight:nth-child(n) { transform: none; min-height: 180px; }
}

/* ---------- Portfolio แบบ mockup ---------- */
.device-card { text-align: center; }
.device-frame { position: relative; display: block; padding: 22px 18px 0; border-radius: 24px; background: linear-gradient(180deg, var(--sky-100), #fff); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
a.device-frame:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.device-frame .mini-laptop { background: #0b1b29; border-radius: 10px 10px 0 0; padding: 8px; }
.device-frame .mini-laptop img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 4px; background: #fff; }
.device-frame .mini-base { height: 8px; margin: 0 -14px; background: linear-gradient(180deg, #d9e2ea, #a9b8c6); border-radius: 0 0 10px 10px; }
.device-frame .mini-phone { position: absolute; right: 10px; bottom: 0; width: 22%; background: #0b1b29; border-radius: 12px; padding: 5px 4px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.device-frame .mini-phone img { width: 100%; aspect-ratio: 9 / 17; object-fit: cover; object-position: top; border-radius: 8px; }
.device-frame .badge { top: 12px; left: 12px; }
.device-card .domain { margin: 18px 0 2px; color: var(--muted); font-size: .92rem; }
.device-card h3 { font-size: 1.12rem; margin: 0 0 4px; }
.device-card h3 a { color: var(--ink); text-decoration: none; }
.device-card h3 a:hover { color: var(--brand-600); }
.device-card .meta { font-size: .9rem; color: var(--muted); margin: 0; }
.device-card[hidden] { display: none; }

/* ---------- Section มืด ---------- */
.section--dark { background: #071d2e; color: #b7cde0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section-head p { color: #9fb7cb; }
.section--dark .eyebrow { color: var(--sky); }
.section--dark .hl { color: var(--sky); }
.section--dark .review { background: #0d2a40; border-color: rgba(255,255,255,.08); }
.section--dark .review blockquote, .section--dark .review cite { color: #fff; }
.section--dark .review small { color: #9fb7cb; }
.section--dark .avatar { background: var(--sky); color: var(--brand); }

/* ---------- การ์ดแพ็กเกจ (หัวข้อสี + ราคาใหญ่) ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.pkg { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pkg--featured { border: 2px solid var(--sky); box-shadow: 0 18px 44px rgba(96,176,244,.28); }
.pkg .ribbon { position: absolute; top: -14px; right: 22px; padding: 4px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 600; }
.pkg h3 { font-size: 1.7rem; margin: 0; }
.pkg--a h3 { color: var(--link); }
.pkg--b h3 { color: var(--brand); }
.pkg--c h3 { color: var(--success); }
.pkg .pkg-sub { font-weight: 600; color: var(--ink); margin: 2px 0 10px; }
.pkg .pkg-desc { color: var(--muted); font-size: .96rem; }
.pkg .pkg-free { font-weight: 700; color: var(--ink); margin: 6px 0 10px; }
.pkg .pkg-free span { color: var(--red); }
.pkg .check-list { font-size: .95rem; gap: 8px; margin-bottom: 20px; }
.pkg .check-list .icon { color: var(--brand-600); }
.pkg-price { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pkg-price span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.pkg-price strong { font-family: var(--font-head); font-size: 2rem; line-height: 1.1; color: var(--red); text-align: right; }
.pkg-price strong small { display: block; font-size: .85rem; color: var(--muted); font-weight: 500; }
.pkg .btn { margin-top: 18px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--brand); color: #fff; }

/* ---------- ขั้นตอน (การ์ดบนพื้นมืด + ลูกศร) ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 46px; counter-reset: flow; }
.flow li { position: relative; counter-increment: flow; padding: 80px 24px 26px; border-radius: 22px; background: #fff; color: var(--body); }
.flow li::before { content: "Step " counter(flow); display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.flow .flow-icon { position: absolute; top: 22px; left: 24px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sky-100); color: var(--brand); }
.section--dark .flow h3 { color: var(--brand-600); font-size: 1.12rem; margin: 0 0 4px; }
.section--dark .flow li:last-child h3 { color: var(--red); }
.flow p { margin: 0; color: var(--muted); font-size: .96rem; }
.flow li:not(:nth-child(3n))::after {
    content: "\00BB"; position: absolute; right: -36px; top: 50%; transform: translateY(-50%);
    font-size: 2.2rem; line-height: 1; color: var(--sky);
}
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .flow li::after { display: none; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Care split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.dash { position: relative; border-radius: 28px; padding: 28px; overflow: hidden; background: linear-gradient(150deg, var(--sky-100), #fff 60%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dash-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.dash-tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.dash-tile small { display: block; color: var(--muted); font-size: .8rem; }
.dash-tile b { font-family: var(--font-head); font-size: 1.2rem; color: var(--brand); }
.dash-chart { height: 150px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; align-items: flex-end; gap: 8px; }
.dash-chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--sky), var(--brand-600)); }
.dash-list { margin-top: 14px; display: grid; gap: 8px; }
.dash-list div { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .9rem; color: var(--ink); }
.dash-list .icon { color: var(--success); }
@media (max-width: 480px) { .dash-row { grid-template-columns: 1fr 1fr; } .dash-row .dash-tile:last-child { display: none; } }
.price-tag { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 700; color: var(--red); line-height: 1.1; margin: 4px 0 6px; }
.price-tag small { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* ---------- FAQ 2 คอลัมน์ ---------- */
.faq--cols { max-width: none; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; }
.faq--cols details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; background: transparent; }
.faq--cols details[open] { border-color: var(--sky); }
.faq--cols summary { padding: 20px 40px 20px 0; }
.faq--cols summary::after { color: var(--red); }
@media (max-width: 860px) { .faq--cols { grid-template-columns: 1fr; } }

/* ---------- Contact panel (หน้าแรก) ---------- */
.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.contact-panel-side {
    padding: clamp(28px, 4vw, 48px); color: #d6e6f3;
    background: radial-gradient(500px 300px at 0% 0%, rgba(96,176,244,.45), transparent 60%), linear-gradient(160deg, var(--brand-600), var(--brand));
}
.contact-panel-side h2 { color: #fff; }
.contact-panel-side .contact-card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: #fff; }
.contact-panel-side .contact-card span { color: #c4d9ea; }
.contact-panel-side .contact-card strong { color: #fff; }
.contact-panel-side .contact-card .card-icon { background: #fff; color: var(--brand); }
.contact-panel-side a.contact-card:hover { color: #fff; border-color: var(--sky); }
.contact-panel-form { padding: clamp(24px, 4vw, 48px); background: var(--bg); }
.contact-panel-form h2 { color: var(--brand); }
@media (max-width: 960px) { .contact-panel { grid-template-columns: 1fr; } }

/* ---------- Quote ---------- */
.quote-band { text-align: center; padding: clamp(48px, 7vw, 88px) 0; background: linear-gradient(180deg, #fff, var(--sky-100)); }
.quote-band blockquote { margin: 0 auto 26px; max-width: 820px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.45; color: var(--ink); }
.quote-band .hero-actions { justify-content: center; margin: 0; }

/* ---------- ปุ่มแชทลอย (เดสก์ท็อป) ---------- */
.float-chat {
    position: fixed; right: 22px; bottom: 22px; z-index: 95;
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; min-height: 56px;
    border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600;
    box-shadow: 0 12px 30px rgba(4,62,97,.22); border: 1px solid var(--line);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.float-chat:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 16px 36px rgba(4,62,97,.28); }
.float-chat .bubble { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--line-green); color: #fff; }
.float-chat .bubble .icon { width: 22px; height: 22px; }
@media (max-width: 960px) { .float-chat { display: none; } }

/* ---------- Page hero แบบกลางจอ ---------- */
.page-hero { text-align: center; }
.page-hero h1, .page-hero .lead { margin-left: auto; margin-right: auto; }
.page-hero .breadcrumb ol { justify-content: center; }
.page-hero .hero-actions { justify-content: center; }
.page-hero .eyebrow::before { display: none; }

/* กริดผลงาน: จัดกลางเมื่อมีน้อยกว่า 3 ชิ้น */
.grid-works { grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; }
@media (max-width: 640px) { .grid-works { grid-template-columns: 1fr; } }
.hero--center .hero-sub .price { white-space: nowrap; }

/* ---------- บทความ: สารบัญ / กล่องบริการ / ผู้เขียน ---------- */
.toc { margin: 0 0 32px; padding: 22px 26px; border-radius: var(--radius); background: var(--sky-100); border: 1px solid var(--sky-200); }
.toc h2 { font-size: 1.1rem; margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.toc a { color: var(--brand); text-decoration: none; display: inline-block; padding: 3px 0; }
.toc a:hover { text-decoration: underline; color: var(--link); }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.service-callout { margin-top: 40px; }
.service-callout h2 { font-size: 1.35rem; margin-bottom: .3em; }
.service-callout .eyebrow { margin-bottom: 6px; }
.author-box { display: flex; gap: 20px; align-items: center; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.author-box img { width: 120px; flex-shrink: 0; }
.author-box h2 { font-size: 1.1rem; margin: 0 0 4px; }
.author-box h2 a { color: var(--ink); text-decoration: none; }
.author-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.author-box .author-label { font-size: .82rem; color: var(--link); font-weight: 600; }
@media (max-width: 560px) { .author-box { flex-direction: column; align-items: flex-start; } }

/* เมนู 6 รายการ: ไม่ตัดบรรทัด */
.nav-link { white-space: nowrap; }
@media (max-width: 1240px) { .nav-link { padding: 8px 10px; } .nav-actions .hide-lg { display: none; } }
.prose h3[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.grid-works { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
