/* บริษัท ไดนามิก แบริ่ง พาวเวอร์ — แคตตาล็อกวิศวกรรม */
:root {
  --navy: #0D2240;
  --navy-2: #13305A;
  --blue: #1D4E89;
  --blue-soft: #DCE6F3;
  --steel: #E6EAF0;
  --paper: #F6F8FB;
  --white: #fff;
  --amber: #F5A524;
  --amber-ink: #3A2600;
  --line: #06C755;
  --ink: #0D2240;
  --muted: #4A5A70;
  --rule: #CBD4E0;
  --radius: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 2px rgba(13, 34, 64, .06), 0 8px 24px -12px rgba(13, 34, 64, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.line-logo { width: 22px; height: 22px; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { min-height: 54px; padding: 12px 26px; font-size: 17px; }
.btn--amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 20px -10px rgba(245, 165, 36, .9); }
.btn--amber:hover { background: #FFB43A; }
.btn--ghost { color: var(--navy); background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost:hover { background: var(--white); }
.btn--line { background: var(--line); color: var(--white); box-shadow: 0 8px 20px -10px rgba(6, 199, 85, .9); }
.btn--line:hover { background: #05B44C; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--blue); }

/* แถบบน */
.topbar { background: #E3E8EF; color: #33445C; font-size: 14px; border-bottom: 1px solid var(--rule); }
.topbar__in { display: flex; gap: 6px 22px; align-items: center; min-height: 40px; overflow-x: auto; scrollbar-width: none; }
.topbar__in::-webkit-scrollbar { display: none; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.topbar__item .ic { width: 16px; height: 16px; color: var(--blue); }
a.topbar__item:hover { color: var(--blue); }
.topbar__mail { margin-left: auto; }

/* หัวเว็บ */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header__in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logo { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.brand__text { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.brand__text strong { font-size: 17px; color: var(--navy); white-space: nowrap; }
.brand__text small { font-size: 14px; color: var(--muted); white-space: nowrap; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--navy); padding: 6px 2px; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { display: none; }
.menu-btn { display: grid; gap: 5px; place-content: center; width: 44px; height: 44px; border: 0; background: var(--steel); border-radius: 12px; cursor: pointer; }
.menu-btn span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--white); padding: 8px 16px 16px; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
  height: calc(100vh - 68px); height: calc(100dvh - 68px); overflow-y: auto;
}
.nav.is-open a { padding: 12px 4px; border-bottom: 1px solid var(--steel); font-size: 17px; }

/* ภาพปก */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--navy); background: #E9EDF2; min-height: min(70vh, 620px); display: flex; align-items: flex-end; }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; transform: scale(1.06); will-change: transform; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(236, 240, 245, .25) 0%, rgba(236, 240, 245, .82) 30%, rgba(236, 240, 245, .93) 60%, rgba(236, 240, 245, .97) 100%);
}
.hero__ring { position: absolute; z-index: -1; width: 340px; right: -120px; top: -90px; fill: none; stroke: rgba(29, 78, 137, .22); stroke-width: 1; }
.hero__ring .balls circle { stroke-dasharray: 3 4; }
.hero__ring .axis { stroke-dasharray: 10 6 2 6; }
.hero__in { padding-top: 48px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(34px, 9vw, 64px); letter-spacing: -.01em; text-wrap: balance; }
.hero h1 span { color: var(--blue); }
.hero__sub { margin-top: 12px; font-size: 17px; color: #33445C; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 17px; text-decoration: none; color: var(--navy); }
.hero__phone .ic { color: var(--blue); }

/* จุดเด่น */
.trust { position: relative; z-index: 2; margin-top: -28px; }
.trust__list {
  list-style: none; margin: 0; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust__list li { display: flex; gap: 8px; align-items: flex-start; padding: 12px 8px; }
.trust__list li:nth-child(odd) { border-right: 1px solid var(--steel); }
.trust__list li:nth-child(-n+2) { border-bottom: 1px solid var(--steel); }
.trust__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); flex: none; }
.trust__list strong { display: block; font-size: 16px; line-height: 1.45; }
.trust__list span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* หัวข้อบล็อก */
section { position: relative; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.sec-head h2, .measure h2, .brands h2, .about h2, .faq h2, .contact h2 { font-size: clamp(28px, 6.4vw, 46px); letter-spacing: -.01em; text-wrap: balance; }
.sec-head__lead { margin-top: 8px; color: var(--muted); max-width: 36em; }
.sec-head--center { justify-content: center; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* สินค้า */
.products {
  padding: 64px 0 56px;
  background:
    linear-gradient(var(--paper), rgba(246, 248, 251, .7) 40%, var(--paper)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(29, 78, 137, .07) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(29, 78, 137, .07) 39px 40px);
}
/* แบนเนอร์หมวดสินค้า: รูปฝั่งหนึ่ง แผงฟ้าตัดเฉียงอีกฝั่ง */
.cats { display: grid; gap: 14px; }
.cat {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 190px;
  border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cat:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(13, 34, 64, .06), 0 16px 32px -14px rgba(13, 34, 64, .3); }
.cat__media { position: relative; display: block; border: 0; padding: 0; background: var(--white); }
/* ไม่ขยายรูปเกินขนาดไฟล์จริง จะได้ไม่เบลอ */
.cat__media img { position: absolute; inset: 10px; margin: auto; width: auto; height: auto; max-width: calc(100% - 20px); max-height: calc(100% - 20px); }
.cat__panel {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 4px;
  padding: 18px 16px 18px 30px; margin-left: -22px; text-align: right; color: var(--white);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #3B7BDB 0%, #2860BE 55%, #1D4E89 100%);
}
.cat__panel::after { content: ''; position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; background: radial-gradient(circle, rgba(255, 255, 255, .3) 1.3px, transparent 1.7px) 0 0 / 9px 9px; }
.cat:nth-child(even) { grid-template-columns: 1fr 1fr; }
.cat:nth-child(even) .cat__media { order: 2; }
.cat:nth-child(even) .cat__panel { order: 1; margin: 0 -22px 0 0; padding: 18px 30px 18px 16px; align-items: flex-start; text-align: left; clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%); }
.cat:nth-child(even) .cat__panel::after { right: auto; left: 10px; top: auto; bottom: 10px; }
.cat h3 { font-size: 19px; line-height: 1.45; }
.cat__panel p { font-size: 14px; line-height: 1.5; color: #E4EDFA; }
.cat__panel .cat__brands { font-weight: 600; color: var(--white); letter-spacing: .02em; }
.cat__btn {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 18px; border-radius: 999px;
  background: #D23B30; color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(226, 72, 61, .9); transition: background-color .2s var(--ease);
}
.cat__btn:hover { background: #B8322A; }
.cats__cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cats__cta p { color: var(--muted); }

/* วัดขนาด */
.measure { background: var(--steel); padding: 64px 0; overflow: hidden; }
.measure__in { display: grid; gap: 28px; align-items: center; }
.measure__draw { margin: 0; background: var(--white); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--blue); }
.measure__draw svg { width: 100%; height: auto; display: block; }
.dw-grid path { stroke: rgba(29, 78, 137, .08); stroke-width: 1; fill: none; }
.dw-part circle, .dw-dim rect { fill: none; stroke: var(--blue); stroke-width: 2; }
.dw-balls circle { fill: var(--blue-soft); }
.dw-axis { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 12 5 2 5; fill: none; opacity: .5; }
.dw-dim path { stroke: var(--navy); stroke-width: 1.5; fill: none; color: var(--navy); }
.dw-tag circle { fill: var(--amber); stroke: none; }
.dw-tag text { font: 700 16px 'IBM Plex Sans Thai', sans-serif; fill: var(--amber-ink); text-anchor: middle; }
.measure__text > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 17px; }
.measure__list { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.measure__list li { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 12px; padding: 10px 14px; }
.measure__list b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); font-size: 15px; flex: none; }
.measure__list strong { color: var(--navy); margin-right: 4px; }

/* ขั้นตอน */
.steps {
  padding: 64px 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, #DFE5EE 0%, #F4F6FA 38%, #E2E8F0 62%, #D3DBE6 100%);
}
.steps__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps__list li {
  position: relative; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px;
  padding: 14px 0;
}
.steps__list li:not(:last-child)::after { content: ''; position: absolute; left: 25px; top: 70px; bottom: -14px; width: 2px; background: repeating-linear-gradient(var(--rule) 0 6px, transparent 6px 10px); }
.steps__ic { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.steps__ic .ic { width: 24px; height: 24px; }
.steps__no { position: absolute; left: 34px; top: 6px; font-size: 13px; font-weight: 700; background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 0 7px; line-height: 22px; }
.steps__list h3 { font-size: 18px; align-self: end; }
.steps__list p { color: var(--muted); font-size: 15px; }

/* แบรนด์ */
.brands {
  padding: 72px 0; color: var(--navy);
  background: #E6EAF0 url('/img/bg-steel.webp') center / cover no-repeat;
}
.brands::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(234, 238, 243, .95), rgba(234, 238, 243, .86)); }
.brands__in { position: relative; display: grid; gap: 32px; align-items: center; }
.brands__text > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 17px; max-width: 32em; }
.brands__logos { margin: 0; background: var(--white); border-radius: var(--radius); padding: 14px 18px; max-width: 440px; box-shadow: var(--shadow); }
.brands__logos img { width: 100%; }
.brands__chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brands__chips li {
  font-weight: 700; font-size: 15px; letter-spacing: .04em; padding: 6px 14px; border-radius: 8px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); color: var(--navy);
}

/* เกี่ยวกับเรา */
.about {
  padding: 72px 0; overflow: hidden;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='%231D4E89' stroke-opacity='.09'%3E%3Ccircle cx='200' cy='200' r='190'/%3E%3Ccircle cx='200' cy='200' r='150'/%3E%3Ccircle cx='200' cy='200' r='110'/%3E%3Ccircle cx='200' cy='200' r='70'/%3E%3Cpath d='M0 200h400M200 0v400' stroke-dasharray='10 6 2 6'/%3E%3C/svg%3E") right -160px top -120px / 560px no-repeat;
}
.about__in { display: grid; gap: 28px; align-items: center; }
.about__img { margin: 0; }
.about__img img { width: 100%; border-radius: var(--radius); }
.about__text > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 17px; }
.about__points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.about__points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.about__points .ic { color: var(--white); background: var(--blue); border-radius: 50%; padding: 3px; width: 24px; height: 24px; margin-top: 2px; stroke-width: 2.4; }

/* คำถาม */
.faq { padding: 72px 0; background: var(--steel); }
.faq__in { display: grid; gap: 24px; }
.faq__head > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.faq__head a { color: var(--blue); font-weight: 600; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 12px; padding: 0 18px; box-shadow: 0 1px 2px rgba(13, 34, 64, .05); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* ติดต่อ */
.contact {
  padding: 72px 0; color: var(--navy);
  background: #E6EAF0 url('/img/hero.webp') 70% 50% / cover no-repeat;
}
.contact::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(234, 238, 243, .97) 0%, rgba(234, 238, 243, .93) 55%, rgba(234, 238, 243, .86) 100%); }
.contact__in { position: relative; display: grid; gap: 28px; }
.contact__list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__list .ic { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--white); color: var(--blue); box-shadow: 0 1px 2px rgba(13, 34, 64, .08); }
.contact__list small { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.contact__list a { text-decoration: none; font-weight: 600; font-size: 17px; word-break: break-word; }
.contact__list a:hover { text-decoration: underline; }
.contact__map { border-radius: var(--radius); overflow: hidden; background: var(--white); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; display: block; }
.contact__maplink { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-weight: 600; text-decoration: none; color: var(--navy); background: var(--white); border-top: 1px solid var(--steel); }
.contact__maplink .ic { color: var(--blue); }

/* ท้ายเว็บ */
.footer { background: #DDE3EA; color: #33445C; padding: 56px 0 96px; font-size: 15px; border-top: 1px solid var(--rule); }
.footer__in { display: grid; gap: 28px 16px; grid-template-columns: 1fr 1fr; }
.footer__brand, .footer__col:last-child { grid-column: 1 / -1; }
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__logo { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; overflow: hidden; }
.footer__logo img { width: 58px; height: 58px; object-fit: contain; }
.footer__brand strong { color: var(--navy); font-size: 17px; display: block; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__col h3 { color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: var(--blue); }
.footer__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(13, 34, 64, .12); font-size: 14px; }

/* ปุ่มลอยมือถือ */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--rule);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.dock a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.dock__line { background: var(--line); color: var(--white); }
.dock__call { background: var(--navy); color: var(--white); }
.dock__call .ic { color: var(--amber); }

/* ภาพขยาย */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 25, 49, .88); }
.lightbox__scroll { max-width: min(96vw, 1100px); max-height: 78vh; border-radius: 10px; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 78vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; background: var(--white); cursor: zoom-in; }
.lightbox.is-full .lightbox__scroll { width: min(96vw, 1100px); overflow: auto; overscroll-behavior: contain; background: var(--white); }
.lightbox.is-full img { max-width: none; max-height: none; width: auto; border-radius: 0; cursor: zoom-out; }
.lightbox.no-zoom img { cursor: default; }
.lightbox.no-zoom .lightbox__hint { display: none; }
.lightbox__cap { color: var(--white); text-align: center; margin-top: 10px; font-weight: 600; }
.lightbox__hint { color: #C9D6E8; text-align: center; font-size: 14px; }
.lightbox__close { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); display: grid; place-items: center; cursor: pointer; }

/* อนิเมชันตอนเลื่อน */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 480+ */
@media (min-width: 480px) {
  .cat { min-height: 220px; }
  .cat h3 { font-size: 21px; }
}

/* 768+ */
@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
  .hero { min-height: 600px; align-items: center; }
  .hero::before { background: linear-gradient(90deg, rgba(236, 240, 245, .97) 0%, rgba(236, 240, 245, .88) 38%, rgba(236, 240, 245, .25) 70%, rgba(236, 240, 245, .05) 100%); }
  .hero__img { object-position: 60% 50%; }
  .hero__in { padding-top: 80px; padding-bottom: 110px; }
  .hero__in > * { max-width: 600px; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__ring { width: 520px; right: auto; left: -180px; top: auto; bottom: -220px; }
  .trust { margin-top: -48px; }
  .trust__list { grid-template-columns: repeat(4, 1fr); padding: 10px; }
  .trust__list li { padding: 18px 16px; border: 0 !important; }
  .trust__list li + li { border-left: 1px solid var(--steel) !important; }
  .products, .measure, .steps { padding: 88px 0; }
  .brands, .about, .faq, .contact { padding: 96px 0; }
  .sec-head { margin-bottom: 32px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .cat { min-height: 240px; }
  .cat h3 { font-size: 22px; }  .measure__in { grid-template-columns: 1fr 1fr; gap: 48px; }
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 16px; }
  .steps__list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 6px; }
  .steps__list h3 { align-self: auto; }
  .steps__list li:not(:last-child)::after { left: calc(50% + 40px); right: calc(-50% + 40px); top: 31px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 10px); }
  .steps__ic { width: 64px; height: 64px; margin-bottom: 10px; }
  .steps__no { left: calc(50% + 14px); top: -8px; }
  .brands__in { grid-template-columns: .85fr 1.15fr; gap: 56px; }
  .about__in { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .faq__in { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
  .faq__head { position: sticky; top: 100px; }
  .contact__in { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .footer__in { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: auto; }
}

/* 1024+ : เมนูเต็ม การ์ดสินค้าเลื่อนแนวนอน */
@media (min-width: 1024px) {
  .nav { display: flex; gap: 22px; }
  .menu-btn { display: none; }
  .header__cta { display: inline-flex; min-height: 44px; padding: 8px 18px; font-size: 15px; }
  .hero { min-height: 640px; }
  .hero h1 { font-size: 64px; }
  .hero__sub { font-size: 19px; }
  .cat { min-height: 260px; }
  .cat h3 { font-size: 24px; }
  .cat__panel p { font-size: 15px; }
  .footer { padding-bottom: 40px; }
  .footer__in { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; }
  .footer__brand, .footer__col:last-child { grid-column: auto; }
  .dock { display: none; }
}

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

/* พื้นที่กดอย่างน้อย 44px */
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.topbar__in { min-height: 44px; }
.topbar__item { min-height: 44px; }
.hero__phone { min-height: 44px; }
.contact__list a { display: inline-flex; align-items: center; min-height: 44px; }
.contact__list small { margin-bottom: -6px; }
.faq__head a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__col { gap: 0; }
.footer__col h3 { margin-bottom: 6px; }
.footer__col a, .footer__col span { display: flex; align-items: center; min-height: 44px; line-height: 1.5; }
.footer__col span { min-height: 34px; }
