/* ==========================================================================
   Smart Cyber Tech — style.css  (components & sections)
   ========================================================================== */

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--white);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; width: min(320px, 78vw); }
.preloader__mark { position: relative; width: 108px; height: 108px; margin: 0 auto 30px; display: grid; place-items: center; }
.preloader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--blue); border-right-color: var(--sky);
  animation: spin 1.05s linear infinite;
}
.preloader__ring--2 { inset: 13px; border-top-color: transparent; border-right-color: transparent; border-bottom-color: var(--sky); animation-duration: 1.6s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader__core {
  font-family: var(--f-en); font-weight: 700; font-size: 1.28rem; letter-spacing: .06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.preloader__bar { height: 3px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--grad); transition: width .3s var(--ease); }
.preloader__text { margin-top: 16px; font-size: .86rem; color: var(--muted); letter-spacing: .04em; }
.dots::after { content: ""; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* ============ CURSOR & PROGRESS ============ */
.cursor { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; mix-blend-mode: multiply; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 7px; height: 7px; background: var(--blue); }
.cursor__ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(18, 86, 224, .45);
  transition: width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s;
}
.cursor.is-hover .cursor__ring { width: 62px; height: 62px; background: rgba(18, 86, 224, .08); border-color: var(--blue); }

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1001;
  background: var(--grad); box-shadow: 0 0 14px rgba(0, 168, 240, .5);
  transition: width .1s linear;
}

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease), height .4s var(--ease);
}
.header.is-stuck {
  height: 68px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 26px rgba(10, 35, 85, .06);
}
.header.is-hidden { transform: translateY(-100%); transition: transform .45s var(--ease); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { font-family: var(--f-en); font-weight: 700; font-size: 1.16rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.logo__text b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo__text i { font-style: normal; font-weight: 400; color: var(--muted); }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 9px 15px; border-radius: var(--r-pill);
  /* เมนูเป็นส่วนควบคุม ไม่ใช่เนื้อความ จึงไม่ขยายตามขนาดตัวอักษรที่เพิ่มขึ้น
     และต้องไม่หักบรรทัด ไม่งั้น "หน้าแรก" จะแตกเป็นสองบรรทัดเมื่อที่ว่างไม่พอ */
  white-space: nowrap;
  font-size: .86rem; font-weight: 500; color: var(--ink-2);
  transition: color .28s var(--ease), background-color .28s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 0; height: 2px;
  border-radius: 2px; background: var(--grad); transform: translateX(-50%);
  transition: width .32s var(--ease);
}
.nav__link:hover { color: var(--blue); background: var(--blue-100); }
.nav__link.is-active { color: var(--blue); font-weight: 600; }
.nav__link.is-active::after { width: 18px; }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--f-en); font-weight: 600; font-size: .88rem; color: var(--ink); transition: color .3s; }
.header__phone .icon { color: var(--blue); }
.header__phone:hover { color: var(--blue); }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); position: relative; }
.burger span { position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), opacity .25s, width .3s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; width: 14px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ MOBILE MENU ============ */
.mmenu { position: fixed; inset: 0; z-index: 999; visibility: hidden; pointer-events: none; }
.mmenu.is-open { visibility: visible; pointer-events: auto; }
.mmenu__bg { position: absolute; inset: 0; background: rgba(255, 255, 255, .97); backdrop-filter: blur(14px); clip-path: circle(0% at calc(100% - 46px) 44px); transition: clip-path .7s var(--ease-out); }
.mmenu.is-open .mmenu__bg { clip-path: circle(150% at calc(100% - 46px) 44px); }
/* เมนูมีทั้งหมด 11 รายการ จอเตี้ย ๆ จึงต้องเลื่อนได้ และย่อขนาดตัวอักษรตามความสูงจอ
   (justify-content เปลี่ยนเป็น flex-start ไม่งั้นรายการแรกจะถูกดันพ้นขอบบนเมื่อเนื้อหาล้น) */
.mmenu__inner { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; max-width: var(--container); margin-inline: auto; overflow-y: auto; overscroll-behavior: contain; }
.mmenu__list { margin-top: auto; }
.mmenu__list li { overflow: hidden; }
.mmenu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: clamp(5px, 1.1vh, 11px) 0; font-size: clamp(1.15rem, 3.2vh, 1.9rem); font-weight: 600; color: var(--ink);
  transform: translateY(110%); opacity: 0; transition: transform .6s var(--ease-out), opacity .6s var(--ease-out), color .3s;
}
.mmenu.is-open .mmenu__list a { transform: none; opacity: 1; }
.mmenu__list li:nth-child(1) a { transition-delay: .12s; }
.mmenu__list li:nth-child(2) a { transition-delay: .17s; }
.mmenu__list li:nth-child(3) a { transition-delay: .22s; }
.mmenu__list li:nth-child(4) a { transition-delay: .27s; }
.mmenu__list li:nth-child(5) a { transition-delay: .32s; }
.mmenu__list li:nth-child(6) a { transition-delay: .37s; }
.mmenu__list li:nth-child(7) a { transition-delay: .42s; }
.mmenu__list li:nth-child(8) a { transition-delay: .47s; }
.mmenu__list li:nth-child(9) a { transition-delay: .52s; }
.mmenu__list li:nth-child(10) a { transition-delay: .57s; }
.mmenu__list li:nth-child(11) a { transition-delay: .62s; }
.mmenu__list a span { font-family: var(--f-en); font-size: .82rem; color: var(--blue); font-weight: 600; }
.mmenu__list a:hover { color: var(--blue); }
.mmenu__foot { margin-top: auto; padding-bottom: 8px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: var(--f-en); color: var(--muted); }
.mmenu__foot a:hover { color: var(--blue); }

/* ============ HERO (Full-screen Slider · โทนสว่าง) ============ */
.hero {
  position: relative; overflow: hidden;
  height: 100svh; min-height: 640px; max-height: 1200px;
  background: var(--paper);
  color: var(--ink-2);
}

.hslides { position: absolute; inset: 0; }
.hslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.05s var(--ease), visibility 1.05s; }
.hslide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hslide__media { position: absolute; inset: 0; }
.hslide__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 8.5s linear;
}
.hslide.is-active .hslide__media img { transform: scale(1); }

/* ชั้นทับสีขาวด้านซ้าย เพื่อให้ตัวหนังสือกรมท่าอ่านออกเสมอ */
.hslide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(250, 253, 255, .95) 0%, rgba(250, 253, 255, .82) 30%, rgba(250, 253, 255, .34) 58%, rgba(250, 253, 255, .02) 82%),
    linear-gradient(0deg, rgba(250, 253, 255, .92) 0%, rgba(250, 253, 255, .3) 22%, transparent 38%);
}

.hslide__content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  /* +24px จากความสูงแถบบน: เนื้อหาถูกจัดกึ่งกลางในกรอบที่ padding บน–ล่างไม่เท่ากัน
     ถ้าเผื่อแค่ความสูงแถบบนพอดี บล็อกข้อความจะลอยสูงจนป้าย eyebrow เกือบชนเมนู */
  padding-top: calc(var(--header-h) + 24px); padding-bottom: 150px;
}

.hslide__title {
  /* เพดาน 3.75rem (≈67px) ไม่ใช่ 4.2rem เพราะที่ขนาดใหญ่กว่านี้
     บรรทัดยาวสุด "ปลอดภัยตั้งแต่บรรทัดแรก" กว้างเกิน max-width แล้วคำท้ายจะตกบรรทัดเดี่ยว */
  font-size: clamp(2.3rem, 1.2rem + 4.1vw, 3.75rem);
  /* น้ำหนัก 600 เท่ากับหัวข้อ .h2 ของแต่ละหมวด ต่างกันแค่ขนาด
     letter-spacing ติดลบน้อยกว่า .h2 เพราะที่ขนาดใหญ่กว่านี้สระ/วรรณยุกต์ไทยจะเบียดกันง่ายกว่า */
  line-height: 1.3; letter-spacing: -.005em; font-weight: 600; color: var(--ink);
  max-width: 820px;   /* บรรทัดยาวสุดต้องการ 725px ที่เพดานขนาดนี้ เหลือระยะกันชน */
}
.hslide__desc { margin-top: 24px; max-width: 580px; font-size: 1.07rem; line-height: 1.85; color: var(--ink-2); }
.hslide__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ไล่ลำดับข้อความเข้าเมื่อสไลด์ทำงาน */
.hslide .eyebrow, .hslide__title, .hslide__desc, .hslide__cta {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.hslide.is-active .eyebrow        { opacity: 1; transform: none; transition-delay: .25s; }
.hslide.is-active .hslide__title  { opacity: 1; transform: none; transition-delay: .38s; }
.hslide.is-active .hslide__desc   { opacity: 1; transform: none; transition-delay: .52s; }
.hslide.is-active .hslide__cta    { opacity: 1; transform: none; transition-delay: .66s; }

/* แถบล่าง: สถิติ + ปุ่มควบคุมสไลด์ */
.hero__foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; }
.hero__foot::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__foot-in {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding-top: 24px; padding-bottom: 26px;
  border-top: 1px solid rgba(10, 23, 48, .09);
}
.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 10px 38px; }
.hero__stats li { position: relative; padding-left: 16px; }
.hero__stats li::before { content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 3px; border-radius: 3px; background: var(--grad); }
.hero__stats b { display: block; font-family: var(--f-en); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
.hero__stats span { font-size: .95rem; color: var(--muted); white-space: nowrap; }

.hctrl { display: flex; align-items: center; gap: 18px; flex: none; }
.hctrl__btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white);
  border: 1.5px solid var(--line); color: var(--ink);
  box-shadow: var(--sh-xs);
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.hctrl__btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.hctrl__btn[data-hero="prev"] .icon { transform: rotate(180deg); }
/* 15 สไลด์ = 15 จุด ย่อขนาดและช่องไฟลงจากเดิม (9px/9px) ไม่ให้แถบควบคุมกินที่จนชนแถบสถิติ */
.hctrl__dots { display: flex; align-items: center; gap: 7px; }
.hctrl__dots button {
  width: 7px; height: 7px; border-radius: 99px;
  background: rgba(10, 23, 48, .18);
  transition: width .35s var(--ease), background-color .35s var(--ease);
}
.hctrl__dots button.is-active { width: 24px; background: var(--grad); }

/* ============ MARQUEE ============ */
/* ความสูงรวม ~91px เท่าเว็บต้นแบบ smart-cyber-tech.com แต่คงตัวอักษรขนาดเล็กไว้
   ต้นแบบได้ความสูงจากตัวอักษร 22px + padding 26px ของเราชดเชยด้วย padding ที่มากขึ้นแทน */
.marquee { padding: 32px 0; background: var(--deep); overflow: hidden; }
/* ย่อระยะทางต่อรอบลงตามความกว้างกลุ่มที่แคบลงจากตัวอักษรเล็กลง จึงลดเวลาให้ความเร็วที่ตาเห็นเท่าเดิม */
.marquee__track { display: flex; width: max-content; animation: marq 27s linear infinite; line-height: 1.45; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.marquee__group span { font-family: var(--f-en); font-size: .95rem; font-weight: 500; color: rgba(255, 255, 255, .82); white-space: nowrap; transition: color .3s; }
.marquee__group span:hover { color: #5ec8ff; }
.marquee__group i { color: #2a6fd6; font-size: .5rem; }

/* ============ ABOUT ============ */
.about { background: var(--white); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 5vw, 76px); align-items: center; }
.about__media { position: relative; }
.about__frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--line); }
/* ครอปเป็น 4/3 (จากไฟล์ต้นฉบับ 1216/832 ≈ 3/2) เพื่อยืดคอลัมน์ภาพให้ใกล้เคียงคอลัมน์ข้อความ
   ครอปแค่ขั้นนี้ยังไม่กินตัวคนในภาพ — ถ้าครอปแนวตั้งกว่านี้คนซ้าย-ขวาจะโดนตัด */
.about__frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 1.1s var(--ease); }
.about__frame:hover img { transform: scale(1.05); }
.about__glow { position: absolute; inset: -14% -10% -18% -12%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(0, 168, 240, .22), transparent 68%); filter: blur(46px); }
.about__mini {
  /* ยื่นลงใต้กรอบภาพหลัก 40px เพื่อยืดความสูงเชิงสายตาของคอลัมน์ซ้าย
     ให้เข้าใกล้คอลัมน์ข้อความที่สูงกว่า และได้องค์ประกอบซ้อนชั้นที่ตั้งใจ */
  /* ค่าปกติคือ left: 0 — ยื่นออกนอกคอลัมน์ได้เฉพาะจอที่มีขอบหน้ากระดาษเหลือจริง
     (ดูกฎ min-width: 1280px ใน responsive.css) ไม่งั้นรูปจะเลยขอบจอแล้วโดนตัด */
  position: absolute; left: 0; bottom: -40px; z-index: 2;
  width: 42%; border-radius: var(--r-lg); overflow: hidden;
  border: 5px solid #fff; box-shadow: var(--sh-lg);
}
.about__mini img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about__badge {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-radius: var(--r);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--sh-md);
}
.about__badge b { font-family: var(--f-en); font-size: 2.4rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about__badge span { font-size: .82rem; line-height: 1.45; color: var(--ink-2); }

.ticks { margin: 30px 0 34px; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; }
.ticks .icon { width: 26px; height: 26px; flex: none; padding: 5px; margin-top: 2px; border-radius: 50%; background: var(--blue-100); color: var(--blue); stroke-width: 2.4; }
.ticks b { display: block; color: var(--ink); font-weight: 600; }
.ticks div { font-size: .95rem; color: var(--muted); line-height: 1.7; }
.about__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; }

/* ============ SERVICES ============ */
.services { background: var(--paper); }
.services::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(18, 86, 224, .085) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.services .container { position: relative; z-index: 1; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.filters__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--line);
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  transition: all .3s var(--ease);
}
.filters__btn b { font-family: var(--f-en); font-size: .76rem; padding: 2px 7px; border-radius: 99px; background: var(--paper-2); color: var(--muted); transition: all .3s var(--ease); }
.filters__btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.filters__btn.is-active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--sh-blue); }
.filters__btn.is-active b { background: rgba(255, 255, 255, .22); color: #fff; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  position: relative; overflow: hidden;
  /* flex column เพื่อให้แถบแท็กยึดก้นการ์ดได้ — การ์ดในแถวเดียวกันสูงเท่ากันเสมอ
     ถ้าปล่อยให้แท็กลอยตามความยาวข้อความ ช่องว่างใต้การ์ดจะต่างกันได้ถึง 70px */
  display: flex; flex-direction: column;
  /* การ์ดเปลี่ยนจากไอคอนเป็นรูปประกอบเต็มความกว้างด้านบน จึงถอด padding ของการ์ดออก
     แล้วไปคุมระยะที่หัวข้อ/เนื้อความ/แท็กแทน เพื่อให้รูปชนขอบโค้งพอดีไม่มีขอบขาวคั่น */
  padding: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  transform-style: preserve-3d;
}
.svc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 2;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--sh-md); border-color: #c9dcf7; }
.svc:hover::before { transform: scaleX(1); }
/* เลขลำดับเดิมเป็นตัวเลขใหญ่จาง ๆ มุมขวาบน — ทับรูปแล้วอ่านไม่ออก จึงเปลี่ยนเป็นป้ายกลมบนรูป */
.svc__no {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--f-en); font-size: .84rem; font-weight: 700; line-height: 1;
  color: var(--blue); padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--sh-xs);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.svc:hover .svc__no { background: var(--grad); color: #fff; }
.svc__media { display: block; overflow: hidden; background: var(--paper); }
.svc__media img { width: 100%; height: 170px; object-fit: cover; transition: transform .6s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc h3 { font-size: 1.17rem; margin: 22px 30px 10px; }
.svc p { font-size: .93rem; color: var(--muted); line-height: 1.75; margin: 0 30px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: auto 30px 0; padding: 18px 0 30px; }
.svc__tags li { font-family: var(--f-en); font-size: .72rem; padding: 4px 11px; border-radius: 99px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line-2); }
.svc__shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(18, 86, 224, .07), transparent 65%); opacity: 0; transition: opacity .4s; }
.svc:hover .svc__shine { opacity: 1; }
.svc.is-hidden { display: none; }

/* ============ PROCESS ============ */
.process { background: var(--white); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; padding: 30px 24px 26px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
/* เส้นเชื่อมขั้นตอนวางบน .step__body ไม่ใช่ .step เพราะ body เริ่มใต้ภาพพอดี
   จึงอ้าง top: 24px = กึ่งกลางวงกลมตัวเลข ได้ตรงทุกความกว้างจอ
   (ถ้าวางบน .step ต้องใส่ค่าคงที่ซึ่งเพี้ยนตามความสูงภาพที่ยืดตามคอลัมน์)
   right: -43px = padding ขวาการ์ด 24 + เส้นขอบ 1 + ระยะยื่นออกนอกการ์ด 18 */
.step__body { position: relative; display: flex; flex-direction: column; flex: 1; }
.step__body::after { content: ""; position: absolute; top: 24px; right: -43px; width: 18px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }
.step:last-child .step__body::after { display: none; }
.step:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.step__img { margin: -30px -24px 22px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.step__img img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .8s var(--ease); }
.step:hover .step__img img { transform: scale(1.06); }
.step__num { font-family: var(--f-en); font-size: 1.02rem; font-weight: 700; width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--blue-100); color: var(--blue); margin-bottom: 18px; transition: all .4s var(--ease); }
.step:hover .step__num { background: var(--grad); color: #fff; box-shadow: var(--sh-blue); }
.step h3 { font-size: 1.06rem; margin-bottom: 9px; }
/* margin-bottom ที่ย่อหน้าคือระยะขั้นต่ำเหนือป้ายเวลา ส่วน margin-top: auto ของป้าย
   จะดูดที่ว่างที่เหลือลงก้นการ์ด ทำให้ป้ายของทุกการ์ดในแถวอยู่ระดับเดียวกัน */
.step p { font-size: .9rem; color: var(--muted); line-height: 1.72; margin-bottom: 16px; }
.step__time { align-self: flex-start; margin-top: auto; font-family: var(--f-en); font-size: .74rem; padding: 4px 11px; border-radius: 99px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }

/* ============ WORK ============ */
.work { background: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.wcard {
  grid-column: span 2;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.wcard--wide { grid-column: span 3; }
.wcard:hover { transform: translateY(-9px); box-shadow: var(--sh-lg); }
.wcard__img { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--paper-2); }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.wcard:hover .wcard__img img { transform: scale(1.07); }
.wcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(18, 86, 224, .3), transparent 55%); opacity: 0; transition: opacity .5s; }
.wcard:hover .wcard__img::after { opacity: 1; }
.wcard__body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.wcard__cat { font-family: var(--f-en); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.wcard h3 { font-size: 1.2rem; margin: 10px 0 10px; }
.wcard p { font-size: .93rem; color: var(--muted); line-height: 1.72; }
.wcard__kpi { display: flex; gap: 30px; margin-top: auto; padding-top: 22px; }
.wcard__kpi li { font-size: .8rem; color: var(--muted); }
.wcard__kpi b { display: block; font-family: var(--f-en); font-size: 1.5rem; font-weight: 700; line-height: 1.25; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============ WHY ============ */
.why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
/* การ์ดเปลี่ยนจากไอคอนเป็นรูปประกอบเต็มความกว้างด้านบน — ถอด padding รอบการ์ดออก
   แล้วไปคุมระยะที่หัวข้อ/เนื้อความแทน เพื่อให้รูปชนขอบโค้งของการ์ดพอดี */
.why__item { padding: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); border: 1px solid transparent; transition: all .45s var(--ease); }
.why__item:hover { background: var(--white); border-color: var(--line); box-shadow: var(--sh-md); transform: translateY(-6px); }
.why__media { display: block; overflow: hidden; }
.why__media img { width: 100%; height: 180px; object-fit: cover; transition: transform .6s var(--ease); }
.why__item:hover .why__media img { transform: scale(1.045); }
.why__item h3 { font-size: 1.1rem; margin: 20px 28px 9px; }
.why__item p { font-size: .92rem; color: var(--muted); line-height: 1.75; margin: 0 28px 26px; }

/* ============ TESTIMONIALS ============ */
.quotes { background: var(--paper); }
/* .slider__viewport มี margin: -6px (เผื่อที่ให้เงาการ์ด) ซึ่งดึงสไลเดอร์ขึ้นมา 6px
   จึงชดเชยที่หัวข้อ ให้ระยะที่ตาเห็นเท่ากับ 56px เท่าหมวดอื่น */
.quotes .sec-head { margin-bottom: 62px; }
.slider { position: relative; }
.slider__viewport { overflow: hidden; padding: 6px; margin: -6px; }
.slider__track { display: flex; transition: transform .7s var(--ease-out); }
.qcard {
  flex: 0 0 calc(100% / 3); min-width: 0;
  margin-right: 22px;
  padding: 38px 34px 32px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-xs);
  display: flex; flex-direction: column;
}
.qcard__q { width: 40px; height: 40px; fill: var(--blue-100); color: var(--blue-100); margin-bottom: 16px; }
.qcard p { font-size: 1rem; line-height: 1.9; color: var(--ink-2); flex: 1; }
.qcard footer { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 14px; }
.qcard__ava { width: 52px; height: 52px; flex: none; border-radius: 50%; object-fit: cover; border: 2px solid var(--blue-100); box-shadow: var(--sh-xs); }
.qcard footer b { display: block; color: var(--ink); font-weight: 600; }
.qcard footer span { font-size: .84rem; color: var(--muted); }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.slider__btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--sh-xs); transition: all .3s var(--ease); }
.slider__btn:hover { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--sh-blue); }
.slider__btn[data-slide="prev"] .icon { transform: rotate(180deg); }
.slider__dots { display: flex; gap: 8px; }
.slider__dots button { width: 9px; height: 9px; border-radius: 99px; background: #c8daf1; transition: all .35s var(--ease); }
.slider__dots button.is-active { width: 30px; background: var(--grad); }

/* ============ PRICING ============ */
.pricing { background: var(--white); }
/* ไม่ใช้ align-items: start แล้ว — ให้การ์ดสูงเท่ากันทั้งสามใบ
   รายการฟีเจอร์ยาวไม่เท่ากันจึงเคยดันปุ่มเหลื่อมกันถึง 66px */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price { position: relative; display: flex; flex-direction: column; padding: 38px 32px 34px; border-radius: var(--r-xl); background: var(--white); border: 1px solid var(--line); box-shadow: var(--sh-sm); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.price:hover { transform: translateY(-8px); box-shadow: var(--sh-md); }
.price--featured {
  border: 2px solid transparent;
  background-image: linear-gradient(180deg, #fbfdff, #ffffff), var(--grad);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--sh-lg);
}
.price__flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 18px; border-radius: 99px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 600; box-shadow: var(--sh-blue); }
.price h3 { font-family: var(--f-en); font-size: 1.35rem; letter-spacing: -.01em; }
.price__for { margin-top: 8px; font-size: .9rem; color: var(--muted); min-height: 52px; }
.price__amt { margin: 20px 0 24px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.price__amt span { display: block; font-size: .8rem; color: var(--muted); }
/* line-height: 1 เพราะ Noto Sans Thai เผื่อที่ว่างบน–ล่างไว้สำหรับวรรณยุกต์
   ตัวเลขล้วนจึงเกิดช่องว่างเกินความจำเป็นถ้าไม่บีบ */
.price__amt b { font-family: var(--f-en); font-size: 2.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; display: inline-block; }
/* โหมดไม่แสดงราคา ("ติดต่อเจ้าหน้าที่"): เป็นข้อความไทย ต้องลดขนาดกันล้นการ์ด
   และคืน line-height ปกติ ไม่งั้นวรรณยุกต์โดนกรอบบรรทัดตัด */
.price__amt b.price__contact { font-family: var(--f-th); font-size: 1.7rem; letter-spacing: 0; line-height: 1.5; }
.price--featured .price__amt b { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.price__list { display: grid; gap: 12px; margin-bottom: 28px; }
.price > .btn { margin-top: auto; flex: none; }
.price__list li { display: flex; gap: 11px; font-size: .92rem; color: var(--ink-2); align-items: flex-start; }
.price__list .icon { width: 20px; height: 20px; flex: none; margin-top: 4px; padding: 3px; border-radius: 50%; background: var(--blue-100); color: var(--blue); stroke-width: 3; }

/* ============ CTA ============ */
/* padding ชุดเดียวกับ .section เป๊ะ ๆ — เดิมเพดาน 116px ทำให้จอ ≥1450px แถบนี้ตื้นกว่าหมวดอื่น 12px */
.cta { position: relative; overflow: hidden; padding: clamp(72px, 8vw, 128px) 0; background: var(--deep); text-align: center; }
.cta__media { position: absolute; inset: 0; opacity: .22; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 420px at 50% 0%, rgba(0, 168, 240, .32), transparent 66%),
              linear-gradient(180deg, rgba(7, 20, 41, .55), rgba(7, 20, 41, .92));
}
.cta__inner { position: relative; z-index: 2; max-width: 830px; }
.cta h2 { color: #fff; font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3rem); line-height: 1.34; letter-spacing: -.008em; }
.cta .grad { background: linear-gradient(100deg, #6ec8ff, #a9e8ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cta p { margin: 22px auto 0; max-width: 640px; color: rgba(255, 255, 255, .78); }
.cta__btns { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .btn--ghost { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); color: #fff; }
.cta .btn--ghost:hover { background: #fff; color: var(--deep); border-color: #fff; }

/* ============ FAQ ============ */
.faq { background: var(--paper); }
.faq__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(38px, 5vw, 72px); align-items: start; }
.faq__intro .lead { margin-bottom: 28px; }
.acc { display: grid; gap: 12px; }
.acc__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .35s var(--ease), box-shadow .35s var(--ease); }
.acc__item.is-open { border-color: #c4daf8; box-shadow: var(--sh-sm); }
.acc__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px 24px; text-align: left;
  font-size: 1.01rem; font-weight: 600; color: var(--ink); line-height: 1.6;
  transition: color .3s;
}
.acc__head:hover { color: var(--blue); }
.acc__head .icon { width: 30px; height: 30px; flex: none; padding: 6px; border-radius: 50%; background: var(--blue-100); color: var(--blue); transition: transform .4s var(--ease), background .35s, color .35s; }
.acc__item.is-open .acc__head { color: var(--blue); }
.acc__item.is-open .acc__head .icon { transform: rotate(135deg); background: var(--grad); color: #fff; }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.acc__panel p { padding: 0 24px 24px; font-size: .95rem; color: var(--muted); line-height: 1.85; }

/* ============ CONTACT ============ */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.contact__photo { margin: 30px 0 26px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.contact__photo img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }

.contact__list { display: grid; gap: 22px; margin: 32px 0; }
.contact__list li { display: flex; gap: 16px; }
.contact__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--paper); color: var(--blue); border: 1px solid var(--line); transition: all .4s var(--ease); }
.contact__list li:hover .contact__ico { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-3px); }
.contact__list div { font-size: .94rem; color: var(--muted); line-height: 1.7; }
.contact__list b { display: block; color: var(--ink); font-weight: 600; font-size: .95rem; margin-bottom: 2px; }
.contact__list a:hover { color: var(--blue); }

.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); transition: all .35s var(--ease); }
.socials a .icon { width: 19px; height: 19px; }
.socials a:hover { background: var(--grad); color: #fff; border-color: transparent; transform: translateY(-4px); box-shadow: var(--sh-blue); }

/* คอลัมน์ซ้าย (ข้อมูลติดต่อ + ภาพออฟฟิศ) สูงกว่าฟอร์มราว 350px
   ตรึงฟอร์มไว้ระหว่างเลื่อน เพื่อไม่ให้เกิดช่องว่างค้างที่มุมขวาล่างของหมวด */
.contact__form { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(28px, 3vw, 42px); border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-bottom: 20px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 22px 18px 10px; border-radius: var(--r-sm);
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  font-size: .96rem; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
  appearance: none;
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.7; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7e9e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field label {
  position: absolute; left: 19px; top: 15px; font-size: .96rem; color: var(--muted);
  pointer-events: none; transform-origin: left top;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(18, 86, 224, .1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field.has-value label { transform: translateY(-9px) scale(.76); color: var(--blue); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #e35b6d; box-shadow: 0 0 0 4px rgba(227, 91, 109, .1); }
.field__err { display: block; min-height: 16px; margin-top: 5px; font-size: .78rem; color: #d94257; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check span { width: 22px; height: 22px; flex: none; margin-top: 3px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--white); position: relative; transition: all .3s var(--ease); }
.check span::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.check input:checked + span { background: var(--grad); border-color: transparent; }
.check input:checked + span::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(18, 86, 224, .15); }
.check em { font-style: normal; font-size: .87rem; color: var(--muted); line-height: 1.65; }
.check.has-error span { border-color: #e35b6d; }

.btn.is-loading { pointer-events: none; opacity: .82; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading::before {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite;
}
.form-note { margin-top: 16px; font-size: .9rem; text-align: center; min-height: 22px; }
.form-note.is-ok { color: #16a06a; }
.form-note.is-bad { color: #d94257; }

/* ============ FOOTER ============ */
.footer { background: var(--deep); color: rgba(255, 255, 255, .68); padding-top: 76px; }
.footer__top { display: grid; grid-template-columns: 1.4fr .85fr .85fr .85fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.footer .logo__text { color: #fff; }
.footer .logo__text i { color: rgba(255, 255, 255, .5); }
.footer__brand p { margin: 20px 0 24px; font-size: .93rem; line-height: 1.85; max-width: 340px; }
.footer .socials a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .8); }
.footer .socials a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { font-size: .92rem; transition: color .3s var(--ease), padding-left .3s var(--ease); }
.footer__col a:hover { color: #6ec8ff; padding-left: 6px; }
.footer__news p { font-size: .9rem; margin-bottom: 16px; line-height: 1.75; }
.news { display: flex; gap: 8px; }
.news input {
  flex: 1; min-width: 0; padding: 13px 16px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-size: .9rem; transition: border-color .3s, background .3s;
}
.news input::placeholder { color: rgba(255, 255, 255, .42); }
.news input:focus { outline: none; border-color: #4aa8ff; background: rgba(255, 255, 255, .1); }
.news button { width: 48px; flex: none; border-radius: var(--r-sm); background: var(--grad); color: #fff; display: grid; place-items: center; transition: transform .3s var(--ease), box-shadow .3s; }
.news button:hover { transform: translateY(-2px); box-shadow: var(--sh-blue); }
.news__note { margin-top: 10px; font-size: .82rem; min-height: 18px; color: #6ee0a8; }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 24px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .86rem;
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__bottom a:hover { color: #6ec8ff; }

/* ============ TO TOP & COOKIE ============ */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: var(--sh-blue);
  opacity: 0; visibility: hidden; transform: translateY(18px);
  transition: all .4s var(--ease);
}
.to-top .icon { transform: rotate(-90deg); }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px) scale(1.05); }

.cookie {
  position: fixed; left: 26px; bottom: 26px; z-index: 950;
  max-width: 430px; padding: 22px 26px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--sh-lg);
  transform: translateY(140%); opacity: 0; visibility: hidden;
  transition: all .6s var(--ease-out);
}
.cookie.is-on { transform: none; opacity: 1; visibility: visible; }
.cookie p { font-size: .9rem; color: var(--ink-2); line-height: 1.7; }
.cookie__btns { display: flex; gap: 10px; margin-top: 16px; }
