/* ============================================
   Active Dee Consult Co., Ltd.
   Pastel Blue & Gold theme
   ============================================ */

:root{
  --primary:#6FA8DC;
  --primary-deep:#3B7EA8;
  --primary-ink:#27566F;
  --gold:#F0C971;
  --gold-deep:#D9A73C;
  --paper:#F5FAFE;
  --cream:#FFF9EF;
  --line:#DCEAF5;
  --text:#33414D;
  --muted:#6C7C8A;
  --white:#FFFFFF;
  --shadow:0 4px 20px rgba(59,126,168,.10);
  --shadow-lg:0 10px 34px rgba(59,126,168,.16);
  --radius:16px;
  --radius-sm:10px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--paper);
  color:var(--text);
  font-family:'Noto Sans Thai','Noto Sans',sans-serif;
  font-size:16px;
  line-height:1.75;
  overflow-wrap:break-word;
  background-image: url("images/bg_01.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
img,svg{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}
:focus-visible{outline:3px solid var(--primary-deep); outline-offset:2px;}
@media (prefers-reduced-motion:reduce){*{animation:none!important; transition:none!important;}}

.wrap{max-width:1160px; margin:0 auto; padding:0 20px;}

/* ===== TOP BAR ===== */
.topbar{
  background:var(--primary-ink);
  color:#EAF4FB;
  font-size:.82rem;
}
.topbar .wrap{
  display:flex; justify-content:space-between; align-items:center;
  height:36px; gap:16px; flex-wrap:nowrap; overflow:hidden;
}
.topbar a{white-space:nowrap;}
.topbar a:hover{color:var(--gold);}
.topbar .tb-right{display:flex; gap:18px;}
@media (max-width:640px){ .topbar .tb-left{display:none;} .topbar .wrap{justify-content:center;} }

/* ===== HEADER ===== */
header.site{
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(8px);
  position:sticky; top:0; z-index:60;
  border-bottom:1px solid var(--line);
}
.nav-wrap{
  max-width:1160px; margin:0 auto; padding:0 20px;
  display:flex; align-items:center; justify-content:space-between;
  height:62px; gap:14px;
}
.brand{display:flex; align-items:center; gap:9px; min-width:0;}
.brand .mark{
  width:34px; height:34px; border-radius:9px; flex-shrink:0;
  background:linear-gradient(140deg,var(--primary),var(--primary-deep));
  color:#fff; display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:.82rem; letter-spacing:.02em;
}
.brand .bt{display:flex; flex-direction:column; line-height:1.15; min-width:0;}
.brand .bt b{font-size:.98rem; color:var(--primary-ink); white-space:nowrap;}
.brand .bt span{font-size:.68rem; color:var(--muted); white-space:nowrap;}
nav.links{display:flex; gap:26px; font-size:.92rem; font-weight:500;}
nav.links a{position:relative; padding:4px 0; color:var(--text);}
nav.links a:hover{color:var(--primary-deep);}
nav.links a.current{color:var(--primary-deep); font-weight:600;}
nav.links a.current::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px;
  height:2px; background:var(--gold); border-radius:2px;
}
.nav-cta{
  background:var(--gold); color:#4A3A12; font-weight:600;
  padding:9px 18px; border-radius:99px; font-size:.86rem;
  white-space:nowrap; box-shadow:0 2px 10px rgba(217,167,60,.3);
}
.nav-cta:hover{background:var(--gold-deep); color:#fff;}
.nav-toggle{
  display:none; background:none; border:1px solid var(--line);
  width:40px; height:36px; border-radius:9px; font-size:1.1rem;
  cursor:pointer; color:var(--primary-ink);
}
@media (max-width:960px){
  nav.links{
    position:absolute; top:62px; left:0; right:0;
    background:var(--white); flex-direction:column; gap:0;
    max-height:0; overflow:hidden; transition:max-height .3s ease;
    border-bottom:1px solid var(--line); box-shadow:var(--shadow);
  }
  nav.links.open{max-height:400px;}
  nav.links a{padding:14px 20px; width:100%; border-top:1px solid var(--line);}
  nav.links a.current::after{display:none;}
  .nav-toggle{display:block;}
  .nav-cta{display:none;}
}

/* ===== HERO ===== */
.hero{
  background:linear-gradient(165deg, rgba(234,244,252,.7) 0%, rgba(245,250,254,.7) 55%, rgba(255,249,239,.7) 100%);
  padding:64px 0 72px;
  position:relative; overflow:hidden;
}
.hero::after{
  content:""; position:absolute; right:-140px; top:-90px;
  width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle,rgba(240,201,113,.26),transparent 68%);
}
.hero-grid{
  display:grid; grid-template-columns:.95fr .60fr .45fr; gap:48px; align-items:center;
  position:relative; z-index:1;
}
@media (max-width:900px){ .hero-grid{grid-template-columns:1fr; gap:36px;} .hero{padding:44px 0 52px;} }
.pill{
  display:inline-flex; align-items:center; gap:7px;
  background:var(--white); border:1px solid var(--line);
  color:var(--primary-deep); font-size:.8rem; font-weight:600;
  padding:6px 14px; border-radius:99px; box-shadow:var(--shadow);
}
.pill .dot{width:7px; height:7px; border-radius:50%; background:var(--gold-deep);}
h1.hero-h{
  font-size:clamp(1.85rem,4.2vw,2.85rem);
  line-height:1.35; font-weight:700; color:var(--primary-ink);
  margin:18px 0 16px;
}
h1.hero-h em{font-style:normal; color:var(--gold-deep);}
.hero-p{font-size:1.04rem; color:var(--muted); max-width:52ch; margin:0 0 26px;}
.btn-row{display:flex; gap:12px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border-radius:99px; font-weight:600; font-size:.94rem;
  border:1.5px solid transparent; cursor:pointer; transition:.2s;
}

.btn-primary{background:var(--primary-deep); color:#fff; box-shadow:0 4px 16px rgba(59,126,168,.32);}
.btn-primary-blink{background:var(--primary-deep); color:#ba1d2a; box-shadow:0 4px 16px rgba(59,126,168,.32); 
  animation: blink 0.9s ease-in-out infinite;}
.btn-primary:hover{background:var(--primary-ink);}
.btn-gold{background:var(--gold); color:#4A3A12; box-shadow:0 4px 16px rgba(217,167,60,.3);}
.btn-gold:hover{background:var(--gold-deep); color:#fff;}
.btn-ghost{background:var(--white); color:var(--primary-deep); border-color:var(--line);}
.btn-ghost-blink{background:var(--white); color:var(--primary-deep); border-color:var(--line);
  animation: blink 0.9s ease-in-out infinite;}
.btn-ghost:hover{border-color:var(--primary);}
.btn-pink{
  background: #C2185B;
  border-color: #C2185B;
  color: #fff;
}
.btn-pink:hover{
  background: #9E123F;
  border-color: #9E123F;
}

.btn-orange{
  background: #E65100;
  border-color: #E65100;
  color: #fff;
}
.btn-orange:hover{
  background: #BF3F00;
  border-color: #BF3F00;
}
@keyframes blink {
  0% { background-color: #3B7EA8; }
  20% { background-color: #a8becb; }
  50% { background-color: rgba(255, 255, 0, 0.25); }
  100% { background-color: #3B7EA8; }
}
/* hero card */
.hero-card{
  background:var(--white); border-radius:var(--radius);
  box-shadow:var(--shadow-lg); padding:26px; border:1px solid var(--line);
}
.hero-card h4{margin:0 0 4px; color:var(--primary-ink); font-size:1.05rem;}
.hero-card .sub{font-size:.85rem; color:var(--muted); margin:0 0 18px;}
.hc-item{
  display:flex; gap:13px; align-items:flex-start;
  padding:13px 0; border-bottom:1px dashed var(--line);
}
.hc-item:last-child{border-bottom:none;}
.hc-ic{
  width:34px; height:34px; border-radius:9px; flex-shrink:0;
  background:var(--cream); color:var(--gold-deep);
  display:flex; align-items:center; justify-content:center; font-size:.95rem;
}
.hc-item b{display:block; font-size:.93rem; color:var(--text); font-weight:600;}
.hc-item span{font-size:.82rem; color:var(--muted);}

/* ===== STATS ===== */
.stats{
  background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.stats .wrap{
  display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding-top:30px; padding-bottom:30px;
}
@media (max-width:760px){ .stats .wrap{grid-template-columns:repeat(2,1fr); gap:24px;} }
.stat{text-align:center;}
.stat b{display:block; font-size:1.85rem; font-weight:700; color:var(--primary-deep); line-height:1.2;}
.stat span{font-size:.85rem; color:var(--muted);}

/* ===== SECTION ===== */
section.blk{padding:66px 0;}
section.blk.alt{background:var(--white);}
section.blk.cream{background:var(--cream);}
.sec-head{text-align:center; max-width:620px; margin:0 auto 42px;}
.sec-head .kicker{
  font-size:1.8rem; font-weight:700; letter-spacing:.1em;
  color:var(--gold-deep); text-transform:uppercase;
}
.sec-head h2{
  font-size:clamp(1.5rem,3.2vw,2.05rem); color:var(--primary-ink);
  margin:10px 0 12px; line-height:1.4; font-weight:700;
}
.sec-head p{color:var(--muted); margin:0; font-size:.98rem;}
.sec-head.left{text-align:left; margin-left:0;}

/* ===== CARD GRIDS ===== */
.g3{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.g2{display:grid; grid-template-columns:repeat(2,1fr); gap:24px;}
.g4{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
@media (max-width:940px){ .g3,.g4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .g2,.g3,.g4{grid-template-columns:1fr;} }

.card{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:28px 24px;
  transition:transform .2s, box-shadow .2s; height:100%;
}
.card:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg);}
.card .ic{
  width:48px; height:48px; border-radius:13px; margin-bottom:16px;
  background:linear-gradient(140deg,#E8F3FB,#DCEBF7);
  color:var(--primary-deep); display:flex; align-items:center; justify-content:center;
  font-size:1.25rem;
}
.card.gold .ic{background:linear-gradient(140deg,#FFF3DC,#FBE8C4); color:var(--gold-deep);}
.card h3{margin:0 0 9px; font-size:1.08rem; color:var(--primary-ink); font-weight:600;}
.card p{margin:0; font-size:.92rem; color:var(--muted); line-height:1.8;}
.card ul{margin:12px 0 0; padding-left:0; list-style:none;}
.card ul li{
  font-size:.88rem; color:var(--muted); padding:4px 0 4px 22px; position:relative;
}
.card ul li::before{
  content:"✓"; position:absolute; left:0; color:var(--gold-deep); font-weight:700;
}

/* ===== PROCESS ===== */
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:22px; counter-reset:s;}
@media (max-width:940px){ .steps{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .steps{grid-template-columns:1fr;} }
.step{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 22px; position:relative;
}
.step .n{
  width:38px; height:38px; border-radius:50%; margin-bottom:14px;
  background:var(--primary-deep); color:#fff; font-weight:700;
  display:flex; align-items:center; justify-content:center; font-size:.95rem;
}
.step h4{margin:0 0 7px; font-size:1rem; color:var(--primary-ink);}
.step p{margin:0; font-size:.88rem; color:var(--muted);}

/* ===== PRICING ===== */
.price-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; display:flex; flex-direction:column; position:relative; height:100%;
}
.price-card.featured{
  border:2px solid var(--gold); box-shadow:var(--shadow-lg);
}
.price-card .tag{
  position:absolute; top:-12px; left:50%; transform:translateX(-50%);
  background:var(--gold); color:#4A3A12; font-size:.74rem; font-weight:700;
  padding:4px 16px; border-radius:99px; white-space:nowrap;
}
.price-card h3{margin:0 0 6px; color:var(--primary-ink); font-size:1.15rem;}
.price-card .desc{font-size:.86rem; color:var(--muted); margin:0 0 18px; min-height:42px;}
.price-card .amt{font-size:2rem; font-weight:700; color:var(--primary-deep); line-height:1.2;}
.price-card .amt small{font-size:.85rem; font-weight:400; color:var(--muted);}
.price-card .per{font-size:.8rem; color:var(--muted); margin-bottom:20px;}
.price-card ul{list-style:none; padding:0; margin:0 0 24px; flex:1;}
.price-card ul li{
  font-size:.88rem; color:var(--muted); padding:7px 0 7px 24px;
  position:relative; border-bottom:1px dashed var(--line);
}
.price-card ul li:last-child{border-bottom:none;}
.price-card ul li::before{content:"✓"; position:absolute; left:0; color:var(--primary); font-weight:700;}
.price-note{text-align:center; font-size:.85rem; color:var(--muted); margin-top:26px;}

/* ===== WHY / SPLIT ===== */
.split{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center;}
@media (max-width:880px){ .split{grid-template-columns:1fr; gap:32px;} }
.check-list{list-style:none; padding:0; margin:22px 0 0;}
.check-list li{
  padding:11px 0 11px 34px; position:relative; font-size:.95rem; color:var(--text);
  border-bottom:1px dashed var(--line);
}
.check-list li:last-child{border-bottom:none;}
.check-list li::before{
  content:"✓"; position:absolute; left:0; top:11px;
  width:22px; height:22px; border-radius:50%;
  background:var(--cream); color:var(--gold-deep);
  display:flex; align-items:center; justify-content:center; font-size:.75rem; font-weight:700;
}
.img-box{
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow-lg);
  background:linear-gradient(150deg,var(--primary),var(--primary-ink));
  min-height:330px; display:flex; align-items:center; justify-content:center;
  color:#fff; padding:36px; position:relative;
}
.img-box svg{position:absolute; inset:0; width:100%; height:100%; opacity:.13;}
.img-box .q{position:relative; text-align:center;}
.img-box .q b{display:block; font-size:1.3rem; margin-bottom:10px; line-height:1.5;}
.img-box .q span{font-size:.92rem; opacity:.9;}

/* ===== FAQ ===== */
.faq{max-width:820px; margin:0 auto;}
.faq details{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-sm);
  margin-bottom:12px; overflow:hidden;
}
.faq summary{
  padding:17px 22px; cursor:pointer; font-weight:600; font-size:.96rem;
  color:var(--primary-ink); list-style:none; display:flex;
  justify-content:space-between; align-items:center; gap:14px;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary::after{content:"+"; color:var(--gold-deep); font-size:1.3rem; flex-shrink:0;}
.faq details[open] summary::after{content:"−";}
.faq details[open] summary{background:var(--cream);}
.faq .ans{padding:16px 22px 20px; font-size:.92rem; color:var(--muted); border-top:1px solid var(--line);}

/* ===== TESTIMONIAL ===== */
.quote-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 24px; height:100%;
}
.quote-card .stars{color:var(--gold-deep); font-size:.95rem; margin-bottom:12px;}
.quote-card p{font-size:.93rem; color:var(--muted); margin:0 0 18px; line-height:1.85;}
.quote-card .who{display:flex; align-items:center; gap:12px;}
.quote-card .av{
  width:40px; height:40px; border-radius:50%; flex-shrink:0;
  background:linear-gradient(140deg,var(--primary),var(--primary-deep));
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.9rem;
}
.quote-card .who b{display:block; font-size:.9rem; color:var(--text);}
.quote-card .who span{font-size:.8rem; color:var(--muted);}

/* ===== BLOG CARD ===== */
.post{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; height:100%;
  transition:transform .2s, box-shadow .2s;
}
.post:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg);}
.post .thumb{
  height:158px; position:relative; overflow:hidden;
  background:linear-gradient(150deg,var(--primary),var(--primary-ink));
}
.post .thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.post .thumb svg{position:absolute; inset:0; width:100%; height:100%; opacity:.16;}
.post .thumb .date{
  position:absolute; top:13px; right:13px; background:rgba(255,255,255,.95);
  color:var(--primary-ink); border-radius:9px; padding:5px 10px; text-align:center; line-height:1.15;
}
.post .thumb .date b{display:block; font-size:1rem; font-weight:700;}
.post .thumb .date span{font-size:.65rem; color:var(--muted);}
.post .pb{padding:20px; display:flex; flex-direction:column; flex:1;}
.post .cat{font-size:.75rem; color:var(--gold-deep); font-weight:600; margin-bottom:8px;}
.post h3{margin:0 0 9px; font-size:1rem; line-height:1.55; color:var(--primary-ink); font-weight:600;}
.post p{margin:0 0 15px; font-size:.87rem; color:var(--muted); flex:1;}
.more{
  font-size:.86rem; font-weight:600; color:var(--primary-deep);
  display:inline-flex; align-items:center; gap:6px;
}
.more span{transition:transform .2s;}
.post:hover .more span{transform:translateX(4px);}

/* ===== CTA BAND ===== */
.cta-band{
  background:linear-gradient(135deg,var(--primary-deep),var(--primary-ink));
  color:#fff; padding:56px 0; text-align:center; position:relative; overflow:hidden;
}
.cta-band::after{
  content:""; position:absolute; left:-90px; bottom:-120px;
  width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle,rgba(240,201,113,.25),transparent 68%);
}
.cta-band .wrap{position:relative; z-index:1;}
.cta-band h2{font-size:clamp(1.4rem,3vw,1.9rem); margin:0 0 12px; font-weight:700;}
.cta-band p{opacity:.92; margin:0 0 26px; font-size:1rem;}
.cta-band .btn-row{justify-content:center;}

/* ===== PAGE HEAD ===== */
.pagehead{
  background:linear-gradient(165deg,#EAF4FC,var(--paper));
  border-bottom:1px solid var(--line);
  padding:28px 0 26px; /* ลดจาก 50px → 28px */
}
.pagehead h1{
  font-size:clamp(1.65rem,3.6vw,2.35rem); color:var(--primary-ink);
  font-weight:700; line-height:1.35;
  margin:6px 0 4px; /* ลดช่องว่างบน-ล่าง margin:12px 0 10px; */
}
.pagehead p{color:var(--muted);
  max-width:60ch;
  margin:0;
  margin-top:6px; /* ลดช่องว่าง */
  font-size:.92rem; /* ให้ดูเนียนขึ้น */
}
.crumb{font-size:.82rem; color:var(--muted);}
.crumb a{color:var(--primary-deep);}
.crumb i{font-style:normal; margin:0 7px; color:var(--gold-deep);}

/* ===== CONTACT ===== */
.contact-grid{display:grid; grid-template-columns:.85fr 1.15fr; gap:36px;}
@media (max-width:880px){ .contact-grid{grid-template-columns:1fr;} }
.info-box{
  background:linear-gradient(150deg,var(--primary-deep),var(--primary-ink));
  color:#fff; border-radius:var(--radius); padding:32px 28px; height:fit-content;
}
.info-box h3{margin:0 0 20px; font-size:1.15rem; color:var(--gold);}
.info-row{display:flex; gap:13px; padding:13px 0; border-bottom:1px solid rgba(255,255,255,.16);}
.info-row:last-child{border-bottom:none;}
.info-row .ic{
  width:34px; height:34px; border-radius:9px; flex-shrink:0;
  background:rgba(255,255,255,.14); display:flex; align-items:center; justify-content:center;
}
.info-row .k{font-size:.74rem; opacity:.75; text-transform:uppercase; letter-spacing:.06em;}
.info-row .v{font-size:.95rem; font-weight:500;}
.form-box{
  background:var(--white); border:1px solid var(--line);
  border-radius:var(--radius); padding:32px 28px;
}
.field{margin-bottom:18px;}
.field label{display:block; font-size:.86rem; font-weight:600; margin-bottom:7px; color:var(--text);}
.field input,.field textarea,.field select{
  width:100%; border:1px solid var(--line); background:var(--paper);
  padding:12px 14px; border-radius:var(--radius-sm);
  font-family:inherit; font-size:.93rem; color:var(--text);
}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none; border-color:var(--primary); background:var(--white);
  box-shadow:0 0 0 3px rgba(111,168,220,.18);
}
.field textarea{resize:vertical; min-height:120px;}
.f2{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
@media (max-width:560px){ .f2{grid-template-columns:1fr;} }
.form-note{font-size:.83rem; color:var(--muted); margin:12px 0 0;}

/* ===== ARTICLE ===== */
.article{max-width:800px; margin:0 auto;}
.article .cover{
  height:260px; border-radius:var(--radius); overflow:hidden; position:relative;
  background:linear-gradient(150deg,var(--primary),var(--primary-ink)); margin-bottom:30px;
}
.article .cover svg{position:absolute; inset:0; width:100%; height:100%; opacity:.16;}
.article-body{font-size:1rem; line-height:2;}
.article-body p{margin:0 0 20px; color:var(--text);}
.article-body h2{font-size:1.3rem; color:var(--primary-ink); margin:34px 0 14px;}
.article-body h3{font-size:1.08rem; color:var(--primary-ink); margin:26px 0 12px;}
.article-body ul{padding-left:20px; color:var(--muted);}
.article-body li{margin-bottom:8px;}
.article-body blockquote{
  margin:26px 0; padding:18px 24px; background:var(--cream);
  border-left:4px solid var(--gold); border-radius:var(--radius-sm);
  color:var(--muted); font-size:.95rem;
}
.meta{display:flex; gap:14px; align-items:center; font-size:.85rem; color:var(--muted); flex-wrap:wrap;}
.meta .dot{width:4px; height:4px; border-radius:50%; background:var(--gold-deep);}
.tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:34px; padding-top:22px; border-top:1px solid var(--line);}
.tag{
  font-size:.78rem; background:var(--cream); color:var(--gold-deep);
  padding:5px 13px; border-radius:99px; font-weight:500;
}

/* ===== TIMELINE ===== */
.tl{max-width:780px; margin:0 auto;}
.tl-item{display:grid; grid-template-columns:96px 1fr; gap:22px; padding:20px 0; border-bottom:1px dashed var(--line);}
.tl-item:last-child{border-bottom:none;}
@media (max-width:560px){ .tl-item{grid-template-columns:1fr; gap:6px;} }
.tl-item .y{font-weight:700; color:var(--gold-deep);}
.tl-item h4{margin:0 0 6px; color:var(--primary-ink); font-size:1.02rem;}
.tl-item p{margin:0; color:var(--muted); font-size:1.2rem;}

/* ===== FOOTER ===== */
footer.site{background:var(--primary-ink); color:#CFE3EF; font-size:.9rem;}
.f-grid{
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:34px;
  padding:52px 0 34px;
}
@media (max-width:880px){ .f-grid{grid-template-columns:1fr 1fr; gap:28px;} }
@media (max-width:520px){ .f-grid{grid-template-columns:1fr;} }
.f-grid h5{color:var(--gold); margin:0 0 15px; font-size:.98rem;}
.f-grid p{margin:0; line-height:1.85; opacity:.82; font-size:.87rem;}
.f-grid ul{list-style:none; padding:0; margin:0;}
.f-grid ul li{padding:5px 0; opacity:.82; font-size:.87rem;}
.f-grid ul a:hover{color:var(--gold);}
.f-brand{display:flex; align-items:center; gap:10px; margin-bottom:14px;}
.f-brand .mark{
  width:36px; height:36px; border-radius:9px;
  background:linear-gradient(140deg,var(--primary),var(--gold));
  color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem;
}
.f-brand b{color:#fff; font-size:1rem;}
.f-bottom{
  border-top:1px solid rgba(255,255,255,.14); padding:16px 0 22px;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
  font-size:.8rem; opacity:.7;
}

/* ===== FLOATING BUTTONS ===== */
.floats{
  position:fixed; right:16px; bottom:16px; z-index:80;
  display:flex; flex-direction:column; gap:10px;
}
.float-btn{
  width:50px; height:50px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg); color:#fff; font-size:1.15rem;
  transition:transform .2s;
}
.float-btn:hover{transform:scale(1.08);}
.float-btn.call{background:var(--primary-deep);}
.float-btn.line{background:#06C755;}
.float-btn.top{background:var(--gold-deep);}
.float-btn.fb{background:#1877F2;}
@media (max-width:560px){ .float-btn{width:46px; height:46px;} }

/* กล่องรูปภาพ (ใช้แทนข้อความคำคมเดิม) */
.img-box.has-photo{
  padding:0;
  background:var(--line);   /* สีพื้นระหว่างรอรูปโหลด */
}
.img-box.has-photo img{
  width:100%;
  height:100%;
  min-height:330px;
  object-fit:contain;         /* ครอบเต็มกรอบ ไม่ยืดเบี้ยว */
  display:block;
  border-radius:var(--radius);
}
.mark img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}

/* การ์ดโลโก้ซอฟต์แวร์บัญชี */
.logo-card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:140px;
  padding:14px;
}
.logo-card img{
  max-width:100%;
  max-height:110px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.logo-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg);}

/* ============ ตารางราคาแบบใหม่ 4 แพ็กเกจ (STARTING/ESSENTIALS/STANDARD/PREMIUM) ============ */
.pv2-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:22px;
}
@media (max-width:980px){ .pv2-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .pv2-grid{grid-template-columns:1fr;} }

.pv2-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; position:relative; display:flex; flex-direction:column;
  transition:transform .2s, box-shadow .2s;
}
.pv2-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg);}

.pv2-ribbon{
  position:absolute; top:14px; right:-34px; width:130px;
  background:var(--gold-deep); color:#fff; font-size:.7rem; font-weight:700;
  text-align:center; padding:5px 0; transform:rotate(45deg);
  letter-spacing:.06em; box-shadow:0 2px 6px rgba(0,0,0,.15); z-index:2;
}

.pv2-head{
  background:var(--primary-ink); color:#fff; text-align:center;
  padding:26px 18px 20px;
}
.pv2-head h3{
  margin:0 0 6px; font-size:1.35rem; font-weight:800; letter-spacing:.02em;
  text-transform:uppercase; color:#fff;
}
.pv2-head span{font-size:.85rem; opacity:.8;}

.pv2-body{padding:24px 22px 26px; display:flex; flex-direction:column; flex:1;}
.pv2-price{text-align:center; margin-bottom:18px;}
.pv2-price .old{
  display:block; font-size:.95rem; font-weight:700; color:var(--gold-deep);
  text-decoration:line-through; text-decoration-color:#C0392B; text-decoration-thickness:2px;
  margin-bottom:2px;
}
.pv2-price .new{font-size:2rem; font-weight:800; color:var(--primary-deep); line-height:1.15;}
.pv2-price .new b{font-size:1.1rem; font-weight:700; margin-right:3px;}
.pv2-price .per{font-size:.8rem; color:var(--muted); margin-top:2px;}

.pv2-list{list-style:none; padding:0; margin:0 0 22px; flex:1;}
.pv2-list li{
  display:flex; gap:9px; align-items:flex-start; font-size:.88rem; color:var(--text);
  padding:10px 0; border-bottom:1px dashed var(--line);
}
.pv2-list li:last-child{border-bottom:none;}
.pv2-list li .ck{
  flex-shrink:0; width:18px; height:18px; border-radius:50%;
  background:var(--cream); color:var(--gold-deep);
  display:flex; align-items:center; justify-content:center; font-size:.7rem; margin-top:1px;
}
.pv2-btn{
  display:block; text-align:center; background:var(--primary-ink); color:#fff;
  padding:11px; border-radius:99px; font-weight:600; font-size:.88rem;
}
.pv2-btn:hover{background:var(--primary-deep);}
.logo-card:hover{transform:translateY(-5px); box-shadow:var(--shadow-lg);}
.blk, .blk.alt, .blk.cream{
  background-color: rgba(255, 255, 255, 0.85); /* ปรับค่า 0.85 ให้โปร่งขึ้น/ทึบขึ้นได้ */
}
.dark-cards .card{
  background: var(--primary-ink);
  border-color: var(--primary-ink);
}
.dark-cards .card h3{ color:#fff; }
.dark-cards .card p{ color: rgba(255,255,255,.72); }
.dark-cards .card ul li{ color: rgba(255,255,255,.78); }
.dark-cards .card .ic{
  background: rgba(255,255,255,.12);
  color:#fff;
}
.dark-cards .card:hover{
  box-shadow: 0 10px 34px rgba(0,0,0,.35);
}
/* เมนูแบบมี dropdown ย่อย */
nav.links .has-sub{
  position:relative;
  display:flex;
  align-items:center;
}
nav.links .sub{
  position:absolute; top:100%; left:-14px; min-width:240px;
  background:var(--white); border:1px solid var(--line); border-radius:12px;
  box-shadow:var(--shadow-lg); padding:8px; opacity:0; visibility:hidden;
  transform:translateY(6px); transition:.18s; display:flex; flex-direction:column;
  z-index:70;
}
nav.links .has-sub:hover .sub,
nav.links .has-sub:focus-within .sub{opacity:1; visibility:visible; transform:translateY(0);}
nav.links .sub a{
  padding:9px 12px; border-radius:8px; font-size:.88rem; font-weight:400; border:none;
}
nav.links .sub a:hover{background:var(--paper); color:var(--primary-deep);}
nav.links .caret{font-size:.62rem; margin-left:4px; opacity:.6;}

@media (max-width:960px){
  nav.links .sub{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; border:none; border-radius:0; min-width:0;
    padding:0 0 8px 12px; background:transparent;
  }
  nav.links .sub a{border-top:none; padding:9px 12px; font-size:.85rem; color:var(--muted);}
  nav.links .caret{display:none;}
}
#docSheet{
    background:#fff; color:#111; font-family:'Noto Sans Thai',sans-serif;
    padding:34px 36px; border:1px solid #ddd; font-size:14px; line-height:1.9;
  }
.doc-header{
  display:flex; justify-content:space-between; align-items:flex-start;
  gap:20px; margin-bottom:20px; padding-bottom:16px; flex-wrap:wrap;
  border-bottom:2px solid #333;
}
#docSheet h1{
  text-align:left; font-size:1.25rem; margin:0 0 4px; color:#111;
}
#docSheet .en-title{text-align:left; font-size:.82rem; color:#555; margin:0;}

.doc-header-right{ text-align:right; white-space:nowrap; }
.doc-header-right .doc-meta{ font-size:.85rem; margin-bottom:4px; }
.doc-header-right .doc-meta .lbl{ color:#555; }
.doc-header-right .doc-meta .val-inline{ font-weight:600; color:#111; margin-left:4px; }

.faq-section{
  max-width:900px; margin:60px auto 0; padding:40px 30px 60px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
}
.faq-section h2{
  text-align:center; color:var(--primary-ink); font-size:1.6rem; margin:0 0 24px;
}
.faq-answer-box{
  background:var(--paper); border-left:4px solid var(--primary);
  border-radius:var(--radius-sm); padding:22px 26px; margin-bottom:22px;
}
.faq-answer-box .kicker-label{
  font-size:.8rem; font-weight:700; color:var(--primary-deep);
  text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px;
}
.faq-answer-box p{ margin:0; color:var(--text); line-height:1.9; font-size:.96rem; }
.faq-answer-box strong{ color:var(--primary-ink); }

.faq-section > p.faq-lead{ color:var(--muted); line-height:1.9; margin:0 0 30px; font-size:.95rem; }
.faq-section h3{ color:var(--primary-ink); font-size:1.2rem; margin:0 0 20px; }

.step-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:26px; }
@media (max-width:760px){ .step-grid{ grid-template-columns:1fr; } }

.step-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 20px 22px;
}
.step-card.highlight{
  border:2px solid var(--primary); box-shadow:var(--shadow);
}
.step-badge{
  display:inline-block; background:var(--cream); color:var(--gold-deep);
  font-size:.75rem; font-weight:700; padding:4px 12px; border-radius:99px; margin-bottom:12px;
}
.step-card.highlight .step-badge{ background:var(--primary); color:#fff; }
.step-card h4{ margin:0 0 10px; color:var(--primary-ink); font-size:1.02rem; }
.step-card p{ margin:0; font-size:.88rem; color:var(--muted); line-height:1.8; }
.step-card a{ color:var(--primary-deep); text-decoration:underline; }
.req-list{ list-style:none; padding:0; margin:20px 0; }
.req-list li{
  position:relative; padding:8px 0 8px 24px; color:var(--text); font-size:.95rem; line-height:1.85;
}
.req-list li::before{
  content:""; position:absolute; left:4px; top:17px; width:7px; height:7px;
  border-radius:50%; background:var(--primary);
}
.req-list li strong{ color:var(--primary-ink); }

.doc-cards{ display:flex; flex-direction:column; gap:16px; margin:20px 0; }
.doc-card{
  background:var(--white); border-left:4px solid var(--primary);
  border-radius:var(--radius-sm); padding:20px 24px; box-shadow:var(--shadow);
}
.doc-card h4{ margin:0 0 10px; color:var(--primary-ink); font-size:1.02rem; }
.doc-card p{ margin:0; color:var(--muted); font-size:.92rem; line-height:1.85; }
.doc-card strong{ color:var(--primary-ink); }

.step-list{ list-style:none; padding:0; margin:20px 0; counter-reset:step; }
.step-list li{
  display:flex; gap:14px; align-items:flex-start; padding:10px 0; font-size:.95rem; color:var(--text); line-height:1.8;
}
.step-list li::before{
  counter-increment:step; content:counter(step);
  flex-shrink:0; width:28px; height:28px; border-radius:50%;
  background:var(--primary); color:#fff; font-weight:700; font-size:.85rem;
  display:flex; align-items:center; justify-content:center;
}
.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.doc-header-left {
  display: flex;
  align-items: center;   /* 🔥 ทำให้โลโก้และข้อความอยู่ระดับเดียวกัน */
  gap: 20px;
}

.doc-logo {
  max-width: 120px;
  max-height: 120px;
}

.doc-title h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
}

.doc-title .en-title {
  margin-top: 4px;
  font-size: 1rem;
  color: #555;
}
.save-inline {
  display: flex;
  align-items: center;
  gap: 6px; /* ระยะห่างระหว่าง checkbox กับข้อความ */
  font-size: 0.95rem;
}
/* ===== TOOL GRID ===== */
.tool-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:24px;
  margin:40px 0;
}

/* ===== TOOL CARD ===== */
.tool-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px 24px;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  box-shadow:var(--shadow);
  transition:transform .2s, box-shadow .2s;
}

.tool-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-lg);
}

/* ===== ICON ===== */
.tool-ic{
  width:54px;
  height:54px;
  border-radius:14px;
  background:linear-gradient(140deg, var(--primary), var(--primary-deep));
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.45rem;
}

/* ===== TITLE ===== */
.tool-title{
  font-size:1.05rem;
  font-weight:600;
  color:var(--primary-ink);
}
