/* Hosting Hispeed — แดง-ดำตามโลโก้ + แสงเรือง/ไล่สีให้มีชีวิต */
:root {
  --red: #d7141a;
  --red-d: #a90d12;
  --red-l: #fdecec;
  --orange: #ff6a2b;
  --ink: #12141a;
  --night: #0a0b0f;
  --txt: #3a4150;
  --muted: #6b7280;
  --line: #e7e9ee;
  --soft: #f6f7f9;
  --ok: #16a34a;
  --radius: 16px;
  --grad: linear-gradient(135deg, #e11d2a 0%, #ff6a2b 100%);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .08);
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--txt); background: #fff; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-d); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(32px, 5.2vw, 56px); letter-spacing: -.015em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 20px; }
h1, h2, h3 { text-wrap: balance; }   /* ไม่ให้คำสุดท้ายตกบรรทัดโดดเดี่ยว */
p { margin: 0 0 1em; }
b, strong { color: var(--ink); font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; }
.ic-s { width: 16px; height: 16px; }
.ic-ok { color: var(--ok); width: 18px; height: 18px; margin-top: 3px; }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border-radius: 12px; font: 600 15px/1.2 var(--font); border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(225, 29, 42, .35); }
.btn-red:hover { color: #fff; box-shadow: 0 12px 30px rgba(225, 29, 42, .5); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: #fff5f5; color: var(--red-d); transform: translateY(-1px); }
.btn-outline-w { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-w:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------- ส่วนหัว ---------- */
.preview-bar { background: #fff7d6; color: #6b5200; text-align: center; font-size: 13px; padding: 6px 12px;
  border-bottom: 1px solid #f1e3a6; }
.preview-bar a { color: #6b5200; text-decoration: underline; }
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.5) blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, .06); }
.hd-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { width: 172px; height: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a { color: var(--ink); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; position: relative; white-space: nowrap; }
.nav > a:hover { background: var(--soft); color: var(--ink); }
.nav > a.on { color: var(--red); }
.nav > a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav-act { display: flex; gap: 8px; margin-left: 12px; }
.nav-act .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.nav-act .lang-sw { border: 1px solid var(--line); padding-inline: 12px; }
.nav-act .lang-sw .ic { width: 16px; height: 16px; }
.burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.burger .ic { width: 26px; height: 26px; }

/* เมนูเต็มแถวต้องกว้างราว 1,150px (ฝั่งไทยยาวกว่า + ปุ่มสลับภาษา) แคบกว่านั้นใช้เมนูพับ */
@media (max-width: 1200px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; max-height: calc(100vh - 72px); overflow: auto; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > a { padding: 12px; font-size: 16px; }
  .nav > a.on::after { display: none; }
  .nav-act { margin: 10px 0 0; flex-direction: column; }
  .nav-act .btn { padding: 13px; font-size: 15px; }
}

/* ---------- หน้าแรก: พื้นดำ + ใยแก้วสีแดง ---------- */
.hero { position: relative; overflow: hidden; color: #cfd3da; isolation: isolate;
  background: var(--night) url(img/hero-fiber.webp) 78% center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 11, 15, .97) 0%, rgba(10, 11, 15, .88) 38%, rgba(10, 11, 15, .35) 72%, rgba(10, 11, 15, .15) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(90deg, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 76px 120px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #ffd9d2;
  background: rgba(225, 29, 42, .18); border: 1px solid rgba(255, 106, 43, .35); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow .ic { width: 16px; height: 16px; color: var(--orange); }
@media (max-width: 480px) { .eyebrow { font-size: 13px; } .hero-cta .btn { flex: 1 1 auto; } }
.lead { font-size: 18px; max-width: 580px; }
.hero .lead { color: #c9cdd4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: #aeb3bc; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .ic { width: 16px; height: 16px; color: #4ade80; }

.search-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px;
  padding: 28px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.search-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: #fff; }
.search-card h3 .ic { color: var(--orange); }
.search-card p { color: #b7bcc5; font-size: 14px; margin-bottom: 18px; }
.search-card a { color: #ffb4a3; }
.dsearch { display: flex; gap: 8px; }
.dsearch input { flex: 1; min-width: 0; font: 500 16px var(--font); padding: 14px 16px; border: 1.5px solid transparent;
  border-radius: 12px; color: var(--ink); background: #fff; outline: none; transition: box-shadow .2s; }
.dsearch input:focus { box-shadow: 0 0 0 4px rgba(255, 106, 43, .35); }
.tld-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tld-chips span { font-size: 13px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px; padding: 5px 11px; color: #d0d4db; }
.tld-chips b { color: #fff; }

@media (max-width: 900px) {
  .hero { background-position: 70% center; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 11, 15, .88) 0%, rgba(10, 11, 15, .93) 100%); }
  .hero-in { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 96px; }
  .dsearch { flex-direction: column; }
}

/* ---------- หัวหน้าหมวด (ภาพพื้นหลังแต่ละหน้า) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #cdd1d8;
  background: var(--night) var(--bg, none) center / cover no-repeat; padding-block: 64px 72px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 11, 15, .96) 0%, rgba(10, 11, 15, .82) 45%, rgba(120, 10, 14, .55) 100%); }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 106, 43, .35), transparent); filter: blur(10px); }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero h1 small { display: block; font-size: .42em; font-weight: 500; color: #ffb4a3; letter-spacing: .02em; margin-top: 6px; }
.page-hero p { font-size: 18px; max-width: 760px; color: #c9cdd4; margin: 0; }
.page-hero p b { color: #fff; }
.page-hero .crumb, .page-hero .crumb a { color: #9aa0aa; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumb a { color: var(--muted); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-pills span { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #e6e8ec;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); padding: 7px 14px; border-radius: 999px; }
.hero-pills .ic { width: 16px; height: 16px; color: #4ade80; }

/* ---------- ส่วน (section) ---------- */
.sec { padding-block: 84px; position: relative; }
.sec-soft { background: var(--soft); }
.sec-warm { background: radial-gradient(900px 400px at 10% 0%, #fff1ec 0%, transparent 60%), radial-gradient(700px 400px at 100% 100%, #fdecec 0%, transparent 60%), #fff; }
.sec-dark { background: radial-gradient(800px 420px at 50% -10%, rgba(225, 29, 42, .32), transparent 70%), var(--night); color: #b8bdc6; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark .sec-head p { color: #9aa0aa; }
.sec-dark .vat { color: #8a909b; }
.sec-dark .link-arrow { color: #ffb4a3; }
.sec-head { text-align: center; max-width: 740px; margin: 0 auto 48px; }
.sec-head p { color: var(--muted); font-size: 17px; }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) { .sec { padding-block: 60px; } }

/* ---------- แถบความน่าเชื่อถือ (ลอยทับขอบหน้าแรก) ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -58px; position: relative; z-index: 3; }
.trust > div { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
  display: flex; gap: 14px; align-items: center; border: 1px solid rgba(0, 0, 0, .04); }
.trust .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(225, 29, 42, .3); }
.trust .ico .ic { width: 22px; height: 22px; }
.trust b { display: block; font-size: 15px; }
.trust span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ---------- การ์ดบริการ: แต่ละบริการมีสีของตัวเอง ---------- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc a { --g: var(--grad); --glow: rgba(225, 29, 42, .25); position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px 24px; color: var(--txt);
  transition: transform .25s, box-shadow .25s, border-color .25s; }
.svc a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--g); }
.svc a::after { content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px; border-radius: 50%;
  background: var(--g); opacity: .08; transition: opacity .25s, transform .25s; }
.svc a:hover { transform: translateY(-6px); box-shadow: 0 22px 44px var(--glow); border-color: transparent; }
.svc a:hover::after { opacity: .16; transform: scale(1.15); }
.svc .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--g); color: #fff; display: grid; place-items: center;
  margin-bottom: 18px; box-shadow: 0 10px 22px var(--glow); position: relative; z-index: 1; }
.svc .ico .ic { width: 28px; height: 28px; }
.svc h3 { margin-bottom: 8px; position: relative; }
.svc p { font-size: 15px; color: var(--muted); flex: 1; position: relative; }
.svc .from { font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px;
  display: flex; align-items: baseline; justify-content: space-between; position: relative; }
.svc .from b { font-size: 24px; background: var(--g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc .s-host   { --g: linear-gradient(135deg, #e11d2a, #ff6a2b); --glow: rgba(225, 29, 42, .28); }
.svc .s-domain { --g: linear-gradient(135deg, #2563eb, #06b6d4); --glow: rgba(37, 99, 235, .25); }
.svc .s-vps    { --g: linear-gradient(135deg, #7c3aed, #db2777); --glow: rgba(124, 58, 237, .25); }
.svc .s-mail   { --g: linear-gradient(135deg, #059669, #14b8a6); --glow: rgba(5, 150, 105, .25); }
@media (max-width: 1000px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } }

/* ---------- การ์ดแพ็กเกจ ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; }
.plans-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .plans-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans-2, .plans-3 { grid-template-columns: 1fr; } }
/* การ์ดสีขาวต้องตั้งสีตัวอักษรเอง ไม่งั้นรับสีจางของพื้นเข้ม (.sec-dark) มาจนอ่านไม่ออก */
.plan { color: var(--txt); position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 26px 26px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: transform .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan-hot { border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 20px 50px rgba(225, 29, 42, .25); }
.sec-dark .plan { border-color: transparent; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.sec-dark .plan-hot { box-shadow: 0 0 0 1px rgba(255, 106, 43, .3), 0 24px 70px rgba(225, 29, 42, .45); }
.plan-tag { position: absolute; top: -13px; left: 26px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(225, 29, 42, .35); }
.plan-top { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.plan-disk { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.plan-for { font-size: 14px; color: var(--muted); margin-top: 2px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; }
.plan-price .amt { font-size: 46px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.plan-hot .plan-price .amt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-price .per { font-size: 15px; color: var(--muted); }
.plan-sub { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 22px; }
.plan-sub s { color: #9aa1ad; margin-inline: 2px; }
.save { display: inline-block; font-size: 12px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 1px 9px; border-radius: 999px; }
.spec { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.spec li { display: flex; gap: 10px; font-size: 15px; padding: 5px 0; }
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-top: 16px; }
.seg button { font: 600 13px var(--font); border: 0; background: none; padding: 8px 13px; border-radius: 9px; color: var(--muted); cursor: pointer; transition: .2s; }
.seg button b { color: var(--ok); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(16, 24, 40, .12); }
.group-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 64px 0 26px; flex-wrap: wrap; }
.group-title:first-child { margin-top: 0; }
.group-title h3 { font-size: 26px; margin: 0; display: flex; align-items: center; gap: 12px; }
.group-title h3::before { content: ""; width: 6px; height: 26px; border-radius: 3px; background: var(--grad); }
.group-title p { margin: 6px 0 0; color: var(--muted); }
.vat { text-align: center; font-size: 14px; color: var(--muted); margin-top: 28px; }

/* ---------- จุดเด่น ---------- */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat > div { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feat > div:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(225, 29, 42, .25); }
.feat .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--grad); color: #fff;
  display: grid; place-items: center; margin-bottom: 16px; box-shadow: 0 10px 20px rgba(225, 29, 42, .25); }
.feat .ico .ic { width: 24px; height: 24px; }
.feat h4 { font-size: 17px; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--muted); margin: 0; }
.sec-dark .feat > div { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .09); }
.sec-dark .feat > div:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 106, 43, .4); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.sec-dark .feat h4 { color: #fff; }
.sec-dark .feat p { color: #9aa0aa; }
.feat.feat-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 1000px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feat, .feat.feat-2 { grid-template-columns: 1fr; } }

/* ---------- ขั้นตอนสั่งซื้อ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, rgba(225, 29, 42, .45) 0 10px, transparent 10px 20px); }
.steps > div { text-align: center; position: relative; z-index: 1; padding: 0 10px; }
.steps .num { width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 0 0 8px #fff, 0 14px 30px rgba(225, 29, 42, .35); }
.sec-soft .steps .num { box-shadow: 0 0 0 8px var(--soft), 0 14px 30px rgba(225, 29, 42, .35); }
.steps .num .ic { width: 30px; height: 30px; }
.steps h4 { font-size: 19px; }
.steps h4::before { counter-increment: s; content: "ขั้นที่ " counter(s) " · "; color: var(--red); font-size: 14px; font-weight: 600; }
.steps p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* ---------- 2 คอลัมน์ + ภาพ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* ลูกใน grid ต้องหดได้ ไม่งั้นคำยาวที่ตัดไม่ได้ดันทั้งคอลัมน์ให้กว้างเกินจอมือถือ */
.split > *, .plans > *, .cards > *, .feat > *, .svc > *, .trust > *, .hero-in > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 7px 0; }
.photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(16, 24, 40, .2); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 11, 15, .75)); }
.photo-badges { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.photo-badges div { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-radius: 14px; padding: 12px 14px; color: #e6e8ec; font-size: 13px; }
.photo-badges b { display: block; color: #fff; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 420px) { .photo { aspect-ratio: 3 / 4; } .photo-badges b { font-size: 17px; } }

/* ---------- โลโก้ลูกค้า: แถบเลื่อนอัตโนมัติ ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track div { flex: 0 0 auto; width: 170px; height: 92px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  display: grid; place-items: center; padding: 14px; transition: transform .2s, box-shadow .2s; }
.marquee-track div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.marquee-track img { max-height: 60px; width: auto; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- ตาราง ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { background: var(--ink); font-size: 13px; color: #c5c9d1; font-weight: 600; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fff7f5; }
.tbl td.num, .tbl th.num { text-align: right; }
/* ตารางที่เป็นข้อความยาว (เช่น หน้า PDPA) ให้ตัดบรรทัดได้ ไม่งั้นมือถือต้องเลื่อนข้าง */
.tbl.wrap-text th, .tbl.wrap-text td { white-space: normal; vertical-align: top; }
.tbl .tld { font-weight: 700; font-size: 18px; }
.tbl .tld span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; }
.chip.th { background: #fff1ec; color: #c2410c; }
@media (max-width: 480px) { .tbl .hide-sm { display: none; } .tbl th, .tbl td { padding: 12px 14px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 12px; transition: box-shadow .2s, border-color .2s; }
.faq details[open] { border-color: rgba(225, 29, 42, .3); box-shadow: 0 10px 30px rgba(225, 29, 42, .08); }
.faq summary { cursor: pointer; list-style: none; padding: 19px 56px 19px 22px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
  border-radius: 50%; background: var(--red-l); color: var(--red); display: grid; place-items: center; font-size: 20px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "–"; background: var(--grad); color: #fff; }
.faq details > div { padding: 0 22px 20px; color: var(--txt); }

/* ---------- แถบติดต่อ (ภาพพื้นหลัง + แดง) ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; color: #ffe4df;
  background: #7a0a0e url(img/office.webp) center / cover no-repeat; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(200, 16, 24, .95) 0%, rgba(160, 12, 18, .9) 45%, rgba(255, 106, 43, .75) 100%); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 60px; flex-wrap: wrap; }
.band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.band p { margin: 0; max-width: 620px; }
.band-act { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- การ์ดข้อมูล (ติดต่อ / ชำระเงิน) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
/* สองคอลัมน์บนจอกว้าง ยุบเหลือคอลัมน์เดียวบนมือถือ — ห้ามใส่ grid-template-columns เป็น inline style
   เพราะจะทับ media query ทำให้การ์ดล้นจอมือถือ */
.cards.cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .cards.cards-2 { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.card h3 .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(225, 29, 42, .25); }
.card p:last-child { margin-bottom: 0; }
.card .big { font-size: 24px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.card .muted, .muted { color: var(--muted); font-size: 14px; }
.card-dark { background: var(--ink); border-color: var(--ink); color: #b8bdc6; }
.card-dark h3, .card-dark .big, .card-dark b { color: #fff; }
.note { background: linear-gradient(135deg, #fff7ed, #fff1ec); border: 1px solid #fed7c3; border-radius: 16px; padding: 18px 22px; color: #7c2d12; font-size: 15px; }
.note b { color: #9a3412; }
.note ul { margin: 6px 0 0; padding-left: 20px; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy { font: 600 13px var(--font); border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 11px; cursor: pointer; color: var(--txt); }
.copy:hover { border-color: var(--ink); }

/* ---------- ข้อตกลง ---------- */
.prose { max-width: 880px; margin: 0 auto; }
.prose ol { padding-left: 22px; }
.prose li { margin-bottom: 12px; }
.prose li::marker { color: var(--red); font-weight: 700; }

/* ---------- ส่วนท้าย ---------- */
.ft { background: var(--night); color: #a3a9b4; font-size: 15px; position: relative; }
.ft::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.ft a { color: #cfd3da; }
.ft a:hover { color: #fff; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 60px 36px; }
.ft-grid h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.ft-grid > div > a, .ft-grid > div > span { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.ft-logo { filter: brightness(0) invert(1); opacity: .92; margin-bottom: 16px; width: 160px; }
.ft-small { font-size: 13px; color: #858b96; }
.ft-social { display: flex; gap: 10px; margin-top: 16px; }
.ft-social a { width: 40px; height: 40px; border-radius: 12px; background: #1a1d23; display: grid; place-items: center; transition: .2s; }
.ft-social a:hover { background: var(--grad); }
.ft-sister { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; padding-block: 18px; border-top: 1px solid #1f232a; }
.ft-sister span { color: #6f7581; }
.ft-copy { font-size: 13px; color: #6f7581; padding-block: 18px 26px; border-top: 1px solid #1f232a; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft-grid { grid-template-columns: 1fr; } }

/* ปุ่ม LINE ลอย — ช่องทางที่ลูกค้าไทยใช้ทักมากที่สุด */
.fab-line { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  background: #06c755; color: #fff; font-weight: 700; padding: 13px 20px; border-radius: 999px; box-shadow: 0 10px 28px rgba(6, 199, 85, .45);
  animation: pop .6s 1.2s both; }
.fab-line:hover { color: #fff; background: #05b04b; transform: translateY(-2px); }
.fab-line .ic { width: 22px; height: 22px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 520px) { .fab-line span { display: none; } .fab-line { padding: 15px; } }

/* ---------- แอนิเมชันตอนเลื่อนจอ ----------
   ซ่อนเฉพาะตอนมี JavaScript (html.js) — ปิด JS แล้วเนื้อหายังเห็นครบ ไม่หายไปทั้งหน้า */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }

.center { text-align: center; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 44px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover .ic { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ขั้นตอนแบบมีเลข (ย้ายโดเมน) */
.steps-list { counter-reset: st; list-style: none; padding: 0; margin: 18px 0 24px; }
.steps-list li { counter-increment: st; position: relative; padding: 0 0 16px 46px; }
.steps-list li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }

/* เบอร์โทรเด่นในหัวหน้าแรก — กดโทรได้ทันทีบนมือถือ */
.hero-tel { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 12px 20px 12px 14px;
  border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.hero-tel:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-tel .tel-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25); flex: 0 0 auto; }
.hero-tel .tel-ic .ic { width: 24px; height: 24px; color: #fff; }
.hero-tel b { display: block; color: #fff; font-size: clamp(24px, 3.2vw, 30px); line-height: 1.1; letter-spacing: .01em; }
.hero-tel small { display: block; color: #c9d2da; font-size: 14px; margin-top: 2px; }

/* ---- แถบขอความยินยอมคุกกี้ (PDPA) ---------------------------------------- */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 14px; pointer-events: none; }
.cc[hidden], .cc [hidden] { display: none !important; }   /* กฎ display ของ .btn / .cc-opts ห้ามชนะ hidden */
.cc-box { pointer-events: auto; max-width: 1100px; margin: 0 auto; background: #fff; color: var(--txt); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 -4px 40px rgba(16, 24, 40, .18); padding: 22px 24px; display: flex; gap: 24px; align-items: center; }
.cc-main { flex: 1; min-width: 0; }
.cc-box h3 { font-size: 17px; margin-bottom: 6px; }
.cc-box p { font-size: 14px; margin: 0; }
.cc-act { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; min-width: 190px; }
.cc-btn { background: var(--ink); color: #fff; padding: 11px 18px; font-size: 14px; }
.cc-btn:hover { color: #fff; opacity: .9; }
.cc-link { background: transparent; color: var(--ink); padding: 8px; font-size: 14px; text-decoration: underline; }
.cc-opts { margin-top: 14px; display: grid; gap: 8px; }
.cc-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cc-opt input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--red); flex: 0 0 auto; }
.cc-opt b { display: block; }
@media (max-width: 720px) {
  .cc { padding: 8px; }
  .cc-box { flex-direction: column; align-items: stretch; padding: 18px; gap: 14px; max-height: 80vh; overflow: auto; }
  .cc-act { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .cc-act .btn { flex: 1 1 40%; }
}
