/* MULTIVISION — เว็บไซต์องค์กร (มือถือก่อน) */
:root {
  --navy: #0B2D5B;
  --navy-900: #071E3D;
  --blue: #1E63D6;
  --blue-600: #174FB0;
  --sky: #8FB8FF;
  --ice: #F4F8FF;
  --teal: #2BC3CD;
  --teal-700: #0E7C86;
  --ink: #0E1A2C;
  --text: #2A3547;
  --muted: #566276;
  --line: #DCE5F2;
  --white: #fff;
  --err: #B42318;
  --ok: #0F7A45;
  --line-green: #06C755;
  --radius: 14px;
  --gutter: 16px;
  --header-h: 64px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; margin: 0 0 .5em; font-weight: 700; text-wrap: balance; }
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.i { width: 22px; height: 22px; flex: none; }
.i-lg { width: 44px; height: 44px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 16px/1.4 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-line .i { color: var(--line-green); }
.btn-line:hover { border-color: var(--line-green); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn:active { transform: translateY(1px); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

/* หัวเว็บ */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--navy); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(7,30,61,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand img { height: 26px; width: auto; }
.menu-btn {
  display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: var(--white); cursor: pointer; border-radius: 10px;
}
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--navy);
  padding: 8px var(--gutter) 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: none; max-height: calc(100svh - var(--header-h)); overflow-y: auto;
}
.nav.is-open { display: block; }
.nav ul { display: grid; }
.nav a:not(.btn) {
  display: block; padding: 12px 4px; color: #DCE7FA; text-decoration: none; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 10px; vertical-align: middle; }
.nav-cta { margin-top: 16px; width: 100%; }

/* แบนเนอร์ */
.hero { position: relative; height: clamp(420px, 68svh, 640px); overflow: hidden; background: var(--navy-900); color: var(--white); display: flex; flex-direction: column; justify-content: flex-end; }
.hero-slides { position: absolute; inset: 0; will-change: transform; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,30,61,.95) 0%, rgba(7,30,61,.78) 45%, rgba(7,30,61,.25) 100%); }
.hero-content { position: relative; padding-bottom: 76px; }
.hero h1 { color: var(--white); font-size: 30px; max-width: 16em; margin-bottom: .35em; }
.hero-text { color: #D7E3F7; max-width: 36em; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--blue); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.eyebrow .i { width: 18px; height: 18px; }
.eyebrow-light { color: var(--teal); }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255,255,255,.14); background: rgba(7,30,61,.55); backdrop-filter: blur(6px); }
.hero-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.hero-caption { margin: 0; font-size: 14px; color: #C9D7EE; display: flex; align-items: center; gap: 8px; min-width: 0; }
.hero-caption span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-caption .i { width: 16px; height: 16px; color: var(--teal); }
.hero-ctrl { display: flex; align-items: center; gap: 2px; flex: none; }
.hc-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--white); cursor: pointer; border-radius: 8px; }
.hc-btn:hover { background: rgba(255,255,255,.12); }
.hc-btn .i { width: 20px; height: 20px; }
.hc-btn .i-play, .hero.is-paused .hc-btn .i-pause { display: none; }
.hero.is-paused .hc-btn .i-play { display: block; }
.hero-dots { display: none; gap: 6px; padding: 0 4px; }
.hero-dot { width: 24px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.hero-dot::after { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.hero-dot.is-active::after { background: var(--teal); }

/* ส่วนเนื้อหา */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-alt { background: var(--ice); }
.section-dark { background: var(--navy-900); color: #CBD8EC; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.sec-head { max-width: 720px; margin-bottom: 28px; }
.sec-head .lead { margin: 0; }
.lead { font-size: 18px; color: var(--muted); }
.section-dark .lead { color: #CBD8EC; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 24px; margin-bottom: 4px; }
.ico-box { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ice); color: var(--blue); flex: none; }
.section-alt .ico-box { background: var(--white); }
.ico-line { color: var(--line-green); }

.intro-grid { display: grid; gap: 32px; }
.intro-grid h2 { font-size: 26px; }
.strengths { display: grid; gap: 12px; }
.strengths li { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.strengths h3 { margin-bottom: 4px; }
.strengths p { margin: 0; color: var(--muted); font-size: 16px; }

.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.groups li { background: var(--white); border-radius: var(--radius); padding: 18px 14px; border: 1px solid var(--line); }
.groups .ico-box { margin-bottom: 12px; background: var(--ice); }
.groups h3 { font-size: 16px; margin-bottom: 4px; }
.groups p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sol-card {
  display: flex; flex-direction: column; height: 100%; padding: 18px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: var(--white);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.sol-card .ico-box { margin-bottom: 14px; }
.sol-card h3 { font-size: 16px; margin-bottom: 2px; }
.sol-card .en { display: block; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .02em; margin-bottom: 8px; }
.sol-card p { display: none; font-size: 15px; color: var(--muted); margin-bottom: 12px; }
.sol-card .more { margin-top: auto; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--blue); font-size: 15px; }
.more .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }

.std-grid { display: grid; gap: 32px; align-items: start; }
.steps { display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.step-no { font-size: 14px; font-weight: 700; color: var(--blue); padding-top: 12px; width: 22px; }
.steps h3 { margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.std-photo { margin: 0; }
.std-photo img, .detail-photo img, .about-photo img { width: 100%; border-radius: 10px; }
.std-photo figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* แกลเลอรีแบบ masonry — คงสัดส่วนรูปจริง ไม่ครอป */
.masonry { columns: 2; column-gap: 10px; }
.masonry > * { break-inside: avoid; margin: 0 0 10px; display: block; }
.masonry figure { margin: 0; }
.masonry img { width: 100%; border-radius: 8px; }
.work-item { text-decoration: none; color: var(--text); }
.work-item figcaption { padding: 8px 2px 6px; display: grid; gap: 2px; }
.work-cat { font-size: 14px; color: var(--blue); font-weight: 600; }
.work-title { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.work-item img { transition: opacity .2s; }
.work-item:hover img { opacity: .9; }
.work-item[hidden] { display: none; }

.after-grid { display: grid; gap: 32px; }
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.checks .i { color: var(--teal); margin-top: 3px; }
.checks-dark li { background: var(--ice); border-color: transparent; }
.checks-dark .i { color: var(--teal-700); }

.brands-title { font-size: 16px; color: var(--muted); font-weight: 600; text-align: center; margin-bottom: 16px; }
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.brands li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; color: var(--navy); letter-spacing: .02em; font-size: 15px; }
.brands-sm { justify-content: flex-start; }
.brands-sm li { padding: 4px 12px; font-size: 14px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--blue); transition: transform .2s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 0 18px; color: var(--text); }
.faq-a p:last-child { margin: 0; }

.posts { display: grid; gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.post-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.post-media img { width: 100%; }
.post-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 18px; }
.post-body p { color: var(--muted); font-size: 16px; }
.post-body .more { margin-top: auto; }
.meta { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.meta .i { width: 16px; height: 16px; }
.meta-light { color: #C9D7EE; }

.cta-band { background: var(--navy); color: #D7E3F7; padding: 48px 0; }
.cta-inner { display: grid; gap: 24px; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin: 0; }
.cta-band .btn-line, .section-dark .btn-line { border-color: transparent; }

/* หน้าย่อย */
.page-head { background: var(--navy); color: #D7E3F7; padding: 28px 0 40px; }
.page-head h1 { color: var(--white); max-width: 22em; }
.page-head .lead { color: #CBD8EC; max-width: 46em; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; margin-bottom: 18px; }
.crumbs li { color: #AFC3E2; }
.crumbs li + li::before { content: '/'; margin-right: 4px; color: #6F86AA; }
.crumbs a { color: #DCE7FA; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: #AFC3E2; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.prose { max-width: 70ch; }
.prose h2 { font-size: 22px; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--ink); font-weight: 600; }
.about-grid { display: grid; gap: 32px; }
.about-photo { margin: 0; }
.slogan { margin: 0; text-align: center; color: var(--navy); }
.slogan .i { width: 32px; height: 32px; color: var(--sky); margin: 0 auto 8px; }
.slogan p { font-size: 22px; font-weight: 600; line-height: 1.5; margin: 0; }
.cards-3 { display: grid; gap: 12px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card .ico-box { margin-bottom: 14px; }
.card p { margin: 0; color: var(--muted); }

.chips-nav { position: sticky; top: var(--header-h); z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--white); color: var(--navy); font: 600 15px/1.4 var(--font); text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.sol-sections { padding-top: 16px; padding-bottom: 32px; }
.sol-section { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 72px); }
.sol-section:last-child { border-bottom: 0; }
.sol-cat { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.sol-cat h2 { font-size: 22px; margin-bottom: 0; }
.sol-cat .en { font-size: 14px; color: var(--muted); font-weight: 600; }
.sol-cat p { margin: 4px 0 0; color: var(--muted); }
.svc-list { display: grid; gap: 16px; }
.svc-card { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); background: var(--white); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.svc-media img { width: 100%; }
.svc-body { padding: 18px; display: flex; flex-direction: column; }
.svc-body h3 { font-size: 18px; }
.svc-body p { color: var(--muted); font-size: 16px; }

.detail-grid { display: grid; gap: 32px; padding-top: 32px; padding-bottom: 56px; }
.detail-photo { margin: 0 0 24px; }
.aeo { font-size: 16px; color: var(--muted); border-left: 3px solid var(--sky); padding-left: 14px; }
.sub-h { font-size: 22px; margin-top: 36px; }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--ice); }
.aside-box h2 { font-size: 20px; }
.aside-box .btn-row { flex-direction: column; margin-top: 16px; }
.aside-box .btn { width: 100%; }
.aside-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 16px 0 8px; }
.price { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.price .i { color: var(--blue); margin-top: 4px; }
.price small { color: var(--muted); font-size: 14px; }
.facts { display: grid; gap: 12px; margin: 0 0 16px; }
.facts dt { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.facts dt .i { width: 16px; height: 16px; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.video-box { width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.video-box video { width: 100%; height: 100%; }
.other-svc { display: grid; gap: 8px; }
.other-svc a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.other-svc a:hover { border-color: var(--blue); color: var(--blue); }
.filter { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; scrollbar-width: none; }

/* ติดต่อ */
.contact-grid { display: grid; gap: 32px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h2 { font-size: 22px; }
.lead-form { display: grid; gap: 16px; margin-top: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: 16px; padding: 0; }
.req { color: var(--err); margin-left: 2px; }
.opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--font); color: var(--ink); background: var(--white);
  border: 1.5px solid #B9C9E2; border-radius: 10px; padding: 11px 14px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,99,214,.18); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--err); }
.err { color: var(--err); font-size: 15px; margin: 0; }
.check-grid { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
.check, .field-check label { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; cursor: pointer; min-height: 32px; }
.field-check label { font-weight: 400; }
.check input, .field-check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-err { color: var(--err); }
.lead-form.is-sent .field, .lead-form.is-sent .btn { display: none; }
.sent-box { display: flex; gap: 12px; padding: 18px; border-radius: 12px; background: #E8F6EE; color: #0B5A33; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list h3 { font-size: 16px; margin-bottom: 2px; }
.contact-list p { margin: 0; }
.contact-list a { font-weight: 600; }
.map-box { margin-top: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ice); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.msg-page { min-height: 50vh; }
.msg { text-align: center; padding: 32px 0; }
.msg .i-lg { margin: 0 auto 16px; padding: 10px; border-radius: 50%; }
.msg-ok .i-lg { background: #E8F6EE; color: var(--ok); }
.msg-err .i-lg { background: #FDECEA; color: var(--err); }
.msg .btn-row { justify-content: center; margin-top: 24px; }

/* ท้ายเว็บ */
.site-footer { background: var(--navy-900); color: #B9C8E0; padding: 48px 0 24px; font-size: 15px; }
.footer-grid { display: grid; gap: 32px; }
.f-brand img { margin-bottom: 16px; }
.f-name { color: var(--white); font-weight: 600; margin: 0 0 4px; }
.f-slogan { margin: 0; }
.f-title { color: var(--white); font-size: 16px; margin-bottom: 12px; }
.f-list { display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; align-items: flex-start; }
.f-list .i { width: 18px; height: 18px; margin-top: 4px; color: var(--sky); }
.site-footer a { color: #DCE7FA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.f-links { display: grid; gap: 6px; }

.socials { display: flex; gap: 8px; margin-top: 16px; }
.social { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.08); }
.f-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; font-size: 14px; }
.f-bottom p { margin: 0; }

/* ปุ่มลอยมือถือ: ไลน์ + โทร เท่านั้น */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr;
  height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--white); box-shadow: 0 -4px 16px rgba(7,30,61,.12);
}
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 16px; }
.mbar-line { color: var(--navy); }
.mbar-line .i { color: var(--line-green); width: 24px; height: 24px; }
.mbar-call { background: var(--blue); color: var(--white); }

/* อนิเมชัน: ปรากฏตอนเลื่อนถึง — JS ใส่ .pre ให้เฉพาะชิ้นที่ยังอยู่ใต้จอ จึงไม่กะพริบ */
.reveal.pre { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.pre.is-in { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
  .sol-card:hover, .post-card:hover, .svc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(11,45,91,.12); border-color: #C4D4EE; }
  .sol-card:hover .more .i, .post-card:hover .more .i, .svc-card:hover .more .i { transform: translateX(3px); }
}

@media (min-width: 480px) {
  .sol-card p { display: block; }
  .masonry { columns: 3; }
  .groups { grid-template-columns: repeat(3, 1fr); }
  .hero-dots { display: flex; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
  .svc-card { grid-template-columns: 260px 1fr; }
  .svc-media { background: var(--ice); display: flex; align-items: center; }
  .svc-media img { width: 100%; }
  .svc-body { padding: 24px; justify-content: center; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .sol-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .groups { gap: 16px; }
  .masonry { column-gap: 16px; }
  .masonry > * { margin-bottom: 16px; }
  .hero h1 { font-size: 40px; }
  .hero-text { font-size: 18px; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,30,61,.92) 0%, rgba(7,30,61,.72) 45%, rgba(7,30,61,.15) 100%); }
  .hero-content { padding-bottom: 96px; }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1.4fr 1fr 1fr; }
  .form-card { padding: 32px; }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; font-size: 17px; }
  .mbar { display: none; }
  .brand img { height: 32px; }
  .menu-btn { display: none; }
  .nav { position: static; display: flex !important; align-items: center; gap: 28px; padding: 0; background: none; border: 0; max-height: none; overflow: visible; }
  .nav ul { display: flex; gap: 4px; }
  .nav a:not(.btn) { border: 0; padding: 8px 12px; border-radius: 8px; font-size: 16px; }
  .nav a:not(.btn):hover { background: rgba(255,255,255,.08); color: var(--white); }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
  .nav-cta { margin: 0; width: auto; min-height: 44px; }
  .hero { height: min(84vh, 760px); }
  .hero h1 { font-size: 56px; }
  .section { padding: 96px 0; }
  .section-tight { padding: 48px 0; }
  .sec-head { margin-bottom: 40px; }
  h1 { font-size: 48px; }
  h2 { font-size: 38px; }
  .intro-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
  .intro-grid h2 { font-size: 34px; }
  .sol-grid { grid-template-columns: repeat(4, 1fr); }
  .masonry { columns: 4; column-gap: 20px; }
  .masonry > * { margin-bottom: 20px; }
  .masonry-3 { columns: 3; }
  .std-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .std-photo { position: sticky; top: calc(var(--header-h) + 32px); }
  .after-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .posts { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cta-band { padding: 64px 0; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .page-head { padding: 36px 0 56px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
  .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: start; }
  .about-grid { gap: 48px; }
  .other-svc { grid-template-columns: repeat(2, 1fr); }
  .svc-card { grid-template-columns: 300px 1fr; }
  .svc-body h3 { font-size: 20px; }
}

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

/* ไม่ขยายรูปเกินความละเอียดจริง: มือถือ (จอ 3x) / แท็บเล็ต-คอม (จอ 2x) */
.detail-photo img, .about-photo img, .std-photo img, .post-media img { max-width: min(100%, calc(var(--maxw, 9999px) / 3)); margin-inline: auto; }
@media (min-width: 768px) {
  .detail-photo img, .about-photo img, .std-photo img, .post-media img { max-width: min(100%, calc(var(--maxw, 9999px) / 2)); }
}
.post-media { background: var(--ice); }

/* พื้นที่กดอย่างน้อย 44px สำหรับลิงก์ข้อความ */
.brand { display: flex; align-items: center; min-height: 44px; }
.crumbs a, .f-links a, .link-arrow, .other-svc a { display: inline-flex; align-items: center; min-height: 44px; }
.f-list a, .contact-list a, .prose a, .aeo a, .faq-a a { padding-block: 10px; }
.chip { min-height: 44px; }
.crumbs ol { margin-bottom: 10px; }
.f-links { gap: 0; }
.f-brand img { height: auto; width: 210px; max-width: 100%; }

.crumbs a, .f-links a { min-width: 44px; }
.lead-form input, .lead-form select, .lead-form textarea { font-size: 17px; }
