/* WIN REHAB — สไตล์หลัก */
:root {
  --teal: #0f8f96;
  --teal-d: #0a6b73;
  --teal-dd: #07545b;
  --teal-l: #e4f4f4;
  --teal-ll: #f3fafa;
  --warm: #f29a4b;
  --warm-l: #fdeedd;
  --ink: #17343b;
  --mut: #5f757b;
  --line: #dcebec;
  --white: #fff;
  --r: 16px;
  --shadow: 0 6px 22px rgba(10, 80, 88, .09);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Prompt", "Sarabun", "Leelawadee UI", Tahoma, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--teal-ll);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.3; color: var(--teal-d); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 18px; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
figure { margin: 0; }
address { font-style: normal; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }
.ic { flex: none; vertical-align: -3px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sec { padding-block: 44px; }
.sec--tint { background: var(--teal-l); }
.wrap.sec + .wrap.sec { padding-top: 0; }
.page-hero + .wrap.sec { padding-top: 30px; }
.wrap.sec.reviews-top + .wrap.sec { padding-top: 44px; }
.reviews-top { padding-top: 40px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 999px; border: 1.5px solid var(--teal);
  background: var(--teal); color: var(--white); font-weight: 500; transition: .2s;
}
.btn:hover { background: var(--teal-d); border-color: var(--teal-d); transform: translateY(-1px); }
.btn--ghost { background: var(--white); color: var(--teal-d); }
.btn--ghost:hover { background: var(--teal-l); color: var(--teal-d); }
.btn--sm { padding: 7px 16px; font-size: .9rem; }
.btn--lg { padding: 14px 16px 14px 30px; font-size: 1.05rem; }
.btn__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--white); color: var(--teal-d); }

/* แถบบน + ส่วนหัว */

.header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; }

.logo { display: inline-flex; color: #111; }
.logo__svg { height: 72px; width: auto; display: block; }
.logo img { height: 72px; width: auto; }
.logo--light { color: var(--white); margin-bottom: 14px; }
.logo--light .logo__svg { height: 92px; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav > ul { display: flex; gap: 4px; }
.nav li { position: relative; }
.nav > ul > li > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; font-size: .95rem; font-weight: 400; border-radius: 10px; }
.nav > ul > li > a:hover, .nav a.is-active { color: var(--teal); }
.nav a.is-active { font-weight: 500; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 8px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .92rem; }
.sub a:hover { background: var(--teal-l); color: var(--teal-d); }
.nav-toggle { display: none; background: none; border: 0; color: var(--teal-d); padding: 9px; min-width: 44px; min-height: 44px; }

/* Hero: ข้อความซ้อนบนรูปที่ค่อย ๆ จางเข้าหาพื้นหลัง */
.hero, .page-hero { position: relative; overflow: hidden; background: linear-gradient(100deg, #fbfdfd 0%, #eef7f7 55%, #dcefef 100%); }
.hero__img, .page-hero__img { position: absolute; inset: 0 0 0 auto; width: min(48%, 700px); }
.hero__img { width: auto; height: 100%; aspect-ratio: 4 / 5; right: max(0px, calc((100vw - 1500px) / 2)); }
.hero__img .photo, .page-hero__img .photo {
  width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 22%; border-radius: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.hero__in, .page-hero__in { position: relative; display: flex; align-items: center; }
.hero__in { min-height: 600px; padding-block: 48px 80px; }
.page-hero__in { min-height: 470px; padding-block: 40px; }
.hero__txt, .page-hero__txt { max-width: 56%; }
.hero h1 { font-weight: 300; font-size: clamp(1.7rem, 3.9vw, 2.9rem); line-height: 1.32; color: var(--teal); }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 strong { font-weight: 600; font-size: 1.1em; color: var(--teal-d); }
.hero__name { margin: 22px 0 4px; font-weight: 500; font-size: 1.3rem; color: var(--teal-dd); }
.hero__p { color: var(--teal-d); max-width: 30em; font-size: 1.02rem; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.page-hero h1, .contact h1, .center-head h1, .detail h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 500; }
.page-hero__sub { margin: 6px 0 12px; font-size: clamp(1.1rem, 2.3vw, 1.6rem); font-weight: 400; line-height: 1.45; color: var(--teal-d); }
.page-hero__p { color: var(--teal); margin: 0; }
/* หน้าใน: รูปเป็นพื้นหลังเต็มความกว้าง ไล่สีขาวทับด้านซ้ายให้อ่านข้อความได้ (ตามภาพตัวอย่าง) */
.page-hero__img { inset: 0; width: 100%; }
.page-hero__img .photo { -webkit-mask-image: none; mask-image: none; object-position: center 22%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(247, 252, 252, .97) 0%, rgba(244, 250, 250, .92) 32%, rgba(244, 250, 250, .45) 55%, rgba(244, 250, 250, 0) 74%);
}
.page-hero__in { z-index: 1; }
/* หน้าหลัก: รูปแพทย์ชิดขวา สูงเต็มส่วนหัว */
.hero__img { inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.hero__img .photo { object-position: 72% top; -webkit-mask-image: none; mask-image: none; }
/* กรอบส่วนหัวสัดส่วน 1920:900 เท่ากับขนาดภาพที่แนะนำ รูปยึดขอบบน ศีรษะจึงไม่ถูกตัด */
.hero__in { min-height: clamp(520px, 46.875vw, 900px); padding-block: 48px; }
.hero__txt { max-width: 50%; }
@media (min-width: 1321px) {
  .hero__img .photo { object-position: center top; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: var(--mut); margin-bottom: 12px; }
.crumbs a:hover { color: var(--teal); }
.crumbs b { font-weight: 400; color: var(--teal-d); }
.crumbs--center { justify-content: center; }

/* กรอบรูป (แสดงเมื่อยังไม่ได้อัปโหลดรูป) */
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--teal-l); }
.ph {
  display: grid; place-items: center; color: rgba(15, 143, 150, .45);
  background: linear-gradient(135deg, #eaf6f6 0%, #cfe9ea 55%, #b9dfe1 100%);
}

/* ไอคอนวงกลม */
.bubble {
  display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
  background: var(--teal-l); color: var(--teal); flex: none; transition: .2s;
}
.bubble--warm { background: var(--warm-l); color: #c9812f; }
.bubble--line { background: transparent; border: 1.5px solid var(--teal); }
.bubble--solid { background: var(--teal); color: var(--white); width: 48px; height: 48px; }
.bubble--line-app { background: #06c755; color: var(--white); width: 48px; height: 48px; }

/* แถวบริการ 4 ช่อง */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-block: 30px; }
.svc li > * { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-weight: 500; font-size: 1.08rem; color: var(--teal-d); }
.svc a:hover .bubble { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc .bubble { width: 104px; height: 104px; }
.svc .bubble svg { width: 54px; height: 54px; stroke-width: 1.35; }
.boxes .bubble svg { width: 46px; height: 46px; stroke-width: 1.4; }
.svc--card { gap: 0; padding: 0; margin-block: 26px 34px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.svc--card li { padding: 30px 12px; }
.svc--card li + li { border-left: 1px solid var(--line); }
.hero + .wrap .svc--card { position: relative; margin-top: 26px; }
.wrap.sec > .svc--card:first-child { margin-top: 0; }
.split + .svc--card { margin-top: 0; }

/* แถบเทคโนโลยี */
.band { background: linear-gradient(135deg, #13969c 0%, var(--teal-d) 100%); color: var(--white); padding-block: 44px 52px; }
.band__head { text-align: center; margin-bottom: 22px; }
.band__head h2 { color: var(--white); margin-bottom: 4px; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.band__head p { margin: 0; opacity: .85; }
.slider { display: flex; align-items: center; gap: 8px; }
.slider__track { display: flex; justify-content: safe center; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; padding: 2px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track li { flex: 0 0 calc((100% - 42px) / 4); scroll-snap-align: start; text-align: center; font-size: .95rem; }
.slider__track .photo { aspect-ratio: 1 / .95; border-radius: 14px; }
.slider__track span { display: block; margin-top: 8px; padding: 9px 6px; border-radius: 10px; background: rgba(4, 60, 66, .38); }
.slider__track li:hover span { background: rgba(255, 255, 255, .22); }
.slider__nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--white); flex: none; }
.slider__nav:hover { background: rgba(255, 255, 255, .3); }

/* หัวข้อส่วน */
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.shead h2 { margin: 0; }
.shead p { margin: 2px 0 0; color: var(--mut); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); font-weight: 400; white-space: nowrap; }
.more:hover { gap: 10px; }
.center-head { text-align: center; margin-bottom: 26px; }
.center-head p { color: var(--mut); font-size: 1.1rem; }

/* กริด + การ์ด */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: .2s; }
.card--link:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(10, 80, 88, .15); }
.card__img { border-radius: 0; aspect-ratio: 16 / 10; }
.card__body { position: relative; padding: 14px 44px 16px 16px; flex: 1; }
.card__body h3 { margin-bottom: 4px; }
.card__body p, .card__body time { margin: 0; font-size: .86rem; color: var(--mut); }
.card__go { position: absolute; right: 14px; bottom: 14px; color: var(--teal); }
.card[hidden] { display: none; }

.feature { background: var(--white); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.feature h3 { margin: 14px 0 6px; }
.feature p { margin: 0; color: var(--mut); font-size: .93rem; }

.tiles figure { text-align: center; font-size: .98rem; font-weight: 500; color: var(--teal-d); background: #f1f5f5; border-radius: var(--r); overflow: hidden; }
.tiles .photo { border-radius: 0; }
.tiles figcaption { padding: 12px 10px 14px; }
.tiles--left figure { background: transparent; }
.tiles--left .photo { border-radius: var(--r); }
.tiles--left figcaption { padding: 12px 4px 0; }
.tiles--left figure { text-align: left; }
.tiles b, .team b { display: block; font-weight: 500; color: var(--teal-d); }
.tiles small, .team small { color: var(--mut); }
.team figure { text-align: center; }
.partners { background: var(--white); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; max-width: 980px; margin-inline: auto; }
.partners .photo { aspect-ratio: auto; height: auto; border-radius: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tiles .ph, .team .ph { color: var(--teal); background: linear-gradient(135deg, #eef8f8, #d3ecec); }
.tiles .ph svg, .team .ph svg { width: 72px; height: 72px; stroke-width: 1.2; }
.team .photo { aspect-ratio: 1 / 1.08; object-position: top; margin-bottom: 12px; background: var(--white); }
.team b { font-size: 1.02rem; }

/* กล่องอาการ (กายภาพบำบัด) */
.boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.boxes a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 10px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); font-weight: 400; text-align: center; transition: .2s; }
.boxes a:hover { transform: translateY(-3px); color: var(--teal); }
.boxes .bubble { width: 84px; height: 84px; }
.boxes a { font-weight: 500; font-size: 1.05rem; color: var(--teal-d); padding: 26px 10px; }

/* สองคอลัมน์ ข้อความ + รูป */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; margin-bottom: 36px; }
.split--suit { grid-template-columns: 1.55fr 1fr; align-items: stretch; gap: 18px; margin-bottom: 0; }
.split--suit .split__img { aspect-ratio: auto; height: 100%; min-height: 300px; }
.tintbox { background: #dff0f1; border-radius: var(--r); padding: 30px 34px; }
.tintbox .dots li { font-size: 1.05rem; padding-block: 6px; }
.split__img { aspect-ratio: 4 / 3.8; object-position: center 62%; }
.split--about { grid-template-columns: 1.35fr 1fr; align-items: start; margin-bottom: 0; }
.split--about .split__img { aspect-ratio: 4 / 5; object-position: center top; border-radius: 24px; }
.svc--mini { margin-block: 26px 0; }
.svc--mini li { padding: 22px 6px; }
.svc--mini .bubble { width: 78px; height: 78px; }
.svc--mini .bubble svg { width: 40px; height: 40px; }
.svc--mini li > * { font-size: .95rem; gap: 10px; }
.prose { color: var(--mut); }
.prose h2 { margin: 1.4em 0 .5em; font-size: 1.25rem; }
.prose ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: .3em; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.checks .ic { color: var(--teal); margin-top: 4px; }
.dots li { position: relative; padding: 4px 0 4px 20px; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* แท็บ + ตัวกรอง */
.tabs { display: flex; max-width: 460px; margin: 0 auto 30px; background: var(--white); border-radius: 12px; padding: 4px; box-shadow: var(--shadow); }
.tabs[hidden] { display: none; }
.tab { flex: 1; padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-weight: 400; }
.tab.is-active { background: var(--teal); color: var(--white); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: .88rem; font-weight: 400; }
.chip:hover { border-color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: var(--white); }

/* รีวิว */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.platform { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 14px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.platform b { display: block; font-weight: 500; line-height: 1.3; }
.platform__txt > span { display: flex; align-items: center; gap: 8px; }
.platform em { font-style: normal; font-weight: 600; }
.platform__badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 600; font-size: 1.3rem; }
.platform__badge--google { background: #fff; color: #4285f4; box-shadow: inset 0 0 0 2px #e3e8ee; }
.platform__badge--facebook { background: #1877f2; text-transform: lowercase; }
.platform__badge--wongnai { background: #f26b24; }
.reviews-top { background: #f1f5f5; border-radius: var(--r); margin-top: 18px; padding-inline: 28px; }
.stars { display: inline-flex; gap: 1px; color: #f5b324; }
.review { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); }
.review__q { font-size: 3rem; line-height: .6; color: var(--line); font-weight: 600; height: 22px; }
.review blockquote { margin: 0; color: var(--mut); font-size: .93rem; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 10px; }
.review__av { width: 40px; height: 40px; aspect-ratio: 1; border-radius: 50%; }
.review__av svg { width: 20px; height: 20px; }
.review__av--txt { display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); font-weight: 500; }
.review figcaption b { display: block; font-weight: 500; font-size: .92rem; }
.review figcaption small { color: var(--mut); }

.review--google { position: relative; }
.review__src { position: absolute; top: 16px; right: 16px; }
.review__src .platform__badge { width: 30px; height: 30px; font-size: .95rem; }
.review--google blockquote { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; line-clamp: 9; overflow: hidden; color: var(--ink); }
.review__empty { font-style: italic; opacity: .6; }
.review figcaption a:hover b { text-decoration: underline; }
.review figcaption img.review__av { object-fit: cover; }
.reviews-grid + .reviews-grid { margin-top: 18px; }
.platform em { white-space: nowrap; }

/* รายละเอียดบทความ */
.detail { max-width: 820px; }
.detail header { margin-bottom: 20px; }
.detail h1 { margin: 12px 0 6px; }
.detail time, .detail .lead { color: var(--mut); }
.detail__img { aspect-ratio: 16 / 9; margin-bottom: 24px; }
.detail .prose { font-size: 1.03rem; color: var(--ink); }

/* ส่วนเนื้อหาเพิ่มเติม + แกลเลอรี */
.split--block { margin-bottom: 0; align-items: center; }
.split--block .split__img { aspect-ratio: 4 / 3; object-position: center; }
.split--rev > .photo { order: -1; }
.block__btn { margin-top: 18px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.gallery figure { background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.gallery a { display: block; }
.gallery .photo { aspect-ratio: 4 / 3; border-radius: 0; transition: transform .3s; }
.gallery a:hover .photo { transform: scale(1.04); }
.gallery--natural { align-items: start; }
.gallery--natural .photo { aspect-ratio: auto; height: auto; }
.gallery figcaption { padding: 10px 14px 12px; font-size: .9rem; color: var(--mut); }
.reviews-more { text-align: center; margin: 26px 0 0; }
.reviews-top { padding-bottom: 34px; }

/* ติดต่อ */
.contact__top { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; margin-bottom: 28px; }
.contact__img { aspect-ratio: 4 / 4.6; border-radius: 28px; }
.contact__list { margin-top: 22px; display: grid; gap: 12px; }
.contact__list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); transition: .2s; }
.contact__list a:hover { transform: translateX(4px); }
.contact__list b { display: block; font-weight: 500; line-height: 1.5; }
.contact__list small { color: var(--mut); }
.map { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }
.contact__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.contact__foot h2 { margin-bottom: 6px; }
.contact__foot p { margin: 0; }
.contact__foot b { font-weight: 500; }

/* แถบนัดหมาย */
.cta { display: flex; align-items: center; gap: 18px; margin-block: 10px 48px; padding: 22px 26px; border-radius: var(--r); background: linear-gradient(135deg, var(--teal) 0%, var(--teal-d) 100%); color: var(--white); }
.cta__txt { flex: 1; }
.cta h2 { color: var(--white); margin: 0 0 4px; font-size: 1.3rem; }
.cta p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.cta p a:hover { text-decoration: underline; }
.cta__go { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--white); color: var(--teal-d); flex: none; transition: .2s; }
.cta__go:hover { transform: translateX(4px); }

/* ส่วนท้าย */
.footer { background: var(--teal-dd); color: #cfe8e9; font-size: .92rem; }
.footer__in { display: grid; grid-template-columns: 1.3fr .9fr 1.4fr .8fr; gap: 30px; padding-block: 44px 30px; }
.footer h3 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
.footer li { margin-bottom: 6px; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer address p { display: flex; gap: 10px; margin-bottom: 8px; }
.footer address .ic { margin-top: 5px; }
.footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); text-align: center; padding: 14px; font-size: .82rem; }

/* ปุ่มติดต่อลอย */
.float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 10px; }
.float__b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: var(--white); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: .2s; }
.float__b:hover { transform: scale(1.08); }
.float__b--tel { background: var(--teal); }
.float__b--img { background: transparent; width: 52px; height: 52px; }
.float__b--img img { width: 100%; height: 100%; display: block; }

/* ไอคอนโซเชียล */
.social { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.social a, .social span { display: block; transition: .2s; }
.social a:hover { transform: translateY(-3px) scale(1.06); }
.social img { display: block; }
.social .is-off { opacity: .45; filter: grayscale(.4); cursor: default; }
.social--footer { margin-top: 16px; }
.social--contact { margin-top: 20px; }
.bubble--img { background: transparent; width: 48px; height: 48px; }
.cta p img, .btn img { display: inline-block; vertical-align: -4px; }
.float__b--line { background: #06c755; }
.float__b--fb { background: #1877f2; }

/* แท็บเล็ต */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); flex-direction: column; align-items: stretch; gap: 14px;
    padding: 76px 20px 24px; background: var(--white); box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    transform: translateX(105%); visibility: hidden; transition: transform .25s, visibility .25s; overflow-y: auto; z-index: 55;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav > ul { flex-direction: column; }
  .nav > ul > li > a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 12px; min-width: 0; }
  .nav__call { justify-content: center; }
  .nav-toggle { position: relative; z-index: 56; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .slider__track li { flex-basis: calc((100% - 28px) / 3); }
}

/* มือถือ */
@media (max-width: 680px) {
  .split, .contact__top, .split--suit { grid-template-columns: 1fr; }
  .split--rev > .photo { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero, .page-hero { display: flex; flex-direction: column-reverse; }
  .hero__img, .page-hero__img { position: static; width: 100%; }
  .hero__img .photo, .page-hero__img .photo { height: auto; aspect-ratio: 4 / 3; -webkit-mask-image: none; mask-image: none; }
  .hero__in, .page-hero__in { min-height: 0; padding-block: 28px; }
  .hero__txt, .page-hero__txt { max-width: none; }
  .page-hero::after { display: none; }
  .hero__img { right: 0; height: auto; aspect-ratio: auto; }
  .hero__img .photo { aspect-ratio: 4 / 3.4; object-position: 95% center; }
  .hero__txt { max-width: none; }
  .footer nav ul { columns: 2; column-gap: 18px; }
  .footer__bar { padding-bottom: 76px; }
  .float { right: 12px; bottom: 12px; gap: 8px; }
  .float__b, .float__b--img { width: 46px; height: 46px; }
  .cta { padding-right: 20px; }
  .hero__in { min-height: 0; }
  .svc .bubble { width: 80px; height: 80px; }
  .svc--card li:nth-child(odd) { border-left: 0; }
  .svc--card li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero + .wrap .svc--card { margin-top: 18px; }
  .logo__svg, .logo img { height: 56px; }
  .header__in { min-height: 76px; }
  .grid--3 { grid-template-columns: 1fr; }
  .svc { grid-template-columns: repeat(2, 1fr); }
  .boxes { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: 1fr; }
  .slider__track li { flex-basis: calc((100% - 14px) / 2); }
  .slider__nav { display: none; }
  .split--tint { padding: 20px; }
  .sec { padding-block: 32px; }
  .shead { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer__in { grid-template-columns: 1fr; gap: 22px; }
  .cta { flex-wrap: wrap; padding: 20px; }
  .cta__ic { display: none; }
  .contact__foot .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
