/* =========================================================
   S-Tech – System Tech Engineering Co., Ltd.
   Responsive stylesheet (mobile-first)
   ========================================================= */
:root {
  --navy-950: #061433;
  --navy-900: #0a1f4d;
  --navy-800: #0f2c6b;
  --navy-700: #163a8a;
  --blue-500: #2563eb;
  --blue-50:  #eef3ff;
  --red-600:  #d62839;
  --red-700:  #b81f2f;
  --green-600:#16a34a;
  --ink:      #0f172a;
  --text:     #334155;
  --muted:    #475569;
  --line:     #e2e8f0;
  --bg:       #ffffff;
  --bg-soft:  #f5f7fb;
  --radius:   14px;
  --radius-sm:10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow:    0 10px 30px -12px rgba(10,31,77,.25);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7;
  color: var(--text); background: var(--bg); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip-link { position:absolute; left:-999px; top:8px; background:#fff; padding:8px 14px; z-index:1000; border-radius:8px; }
.skip-link:focus { left:8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy-900); color: #cbd5e1; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--navy .section-head p { color: #a9b8d6; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 10px;
}
.section--navy .eyebrow { color: #ff8a95; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; text-decoration: none !important; transition: .2s ease;
  font-family: inherit; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--red-600); color: #fff; }
.btn--primary:hover { background: var(--red-700); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(214,40,57,.6); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--outline { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-800); }
.btn--line { background: #06c755; color: #fff; }
.btn--line:hover { background: #05a548; }
.btn--block { width: 100%; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-950); color: #b8c4dd; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #e2e8f0; }
.topbar__items { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__items span, .topbar__items a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }
.topbar__addr { display: none; }
@media (max-width: 639px) { .hide-sm { display: none !important; } .topbar .container { justify-content: center; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; }

.nav { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 500; text-decoration: none !important; background: none; border: 0;
  font: inherit; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--navy-700); background: var(--blue-50); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item { position: relative; }
.mega {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(920px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px;
  opacity: 0; visibility: hidden; transition: .18s ease;
}
.nav__item--mega:hover .mega, .nav__item--mega:focus-within .mega, .nav__item--mega.is-open .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav__item--mega:hover .nav__link svg, .nav__item--mega.is-open .nav__link svg { transform: rotate(180deg); }
.mega h3 { font-size: .9rem; color: var(--navy-800); margin: 0 0 6px; padding-bottom: 6px; border-bottom: 2px solid var(--blue-50); }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega a { display: block; padding: 4px 0; color: var(--text); font-size: .92rem; }
.mega a:hover { color: var(--red-600); text-decoration: none; }
.mega__all { grid-column: 1 / -1; text-align: right; font-weight: 600; }

.header-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800); font-weight: 600; font-size: .95rem; text-decoration: none !important;
}
.lang-switch:hover { border-color: var(--navy-800); background: var(--blue-50); }
.lang-switch svg { width: 18px; height: 18px; }
.drawer__nav a[hreflang] { justify-content: flex-start; gap: 8px; color: var(--navy-700); }
.drawer__nav a[hreflang] svg { width: 18px; height: 18px; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.drawer__backdrop { position: absolute; inset: 0; background: rgba(6,20,51,.55); opacity: 0; transition: opacity .25s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 88vw); background: #fff;
  transform: translateX(100%); transition: transform .28s ease; display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__head img { height: 38px; width: auto; }
.drawer__nav { padding: 8px 16px 16px; }
.drawer__nav > a, .drawer__nav summary {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; text-decoration: none;
}
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav details[open] summary svg { transform: rotate(180deg); }
.drawer__nav summary svg { width: 16px; height: 16px; transition: transform .2s; }
.drawer__sub { padding: 6px 0 10px 8px; }
.drawer__sub h4 { font-size: .8rem; color: var(--muted); margin: 10px 0 2px; text-transform: uppercase; letter-spacing: .04em; }
.drawer__sub a { display: block; padding: 7px 4px; color: var(--text); font-size: .95rem; }
.drawer__cta { padding: 16px; display: grid; gap: 10px; margin-top: auto; border-top: 1px solid var(--line); background: var(--bg-soft); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .topbar__addr { display: inline-flex; }
  :root { --header-h: 76px; }
  .brand img { height: 50px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--navy-900);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,20,51,.96) 0%, rgba(10,31,77,.88) 45%, rgba(10,31,77,.45) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 9vw, 120px); }
.hero__content { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 span { color: #ff8a95; }
.hero__lead { font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: #d4ddef; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; max-width: 720px;
}
.stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-sm); padding: 14px 16px; }
.stat strong { display: block; font-size: 1.6rem; color: #fff; line-height: 1.2; }
.stat span { font-size: .88rem; color: #b8c4dd; }
@media (min-width: 768px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, var(--navy-950), var(--navy-800)); color: #cbd5e1; padding: 36px 0 40px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); }
.page-hero p { max-width: 760px; margin: 0; color: #b8c4dd; }
.breadcrumb { font-size: .85rem; margin-bottom: 14px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #7f8fb3; }
.breadcrumb a { color: #b8c4dd; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid { gap: 24px; }
}

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  color: inherit; text-decoration: none !important; height: 100%;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .75rem; font-weight: 600; color: var(--blue-500); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 12px; }
.card__more { margin-top: auto; font-weight: 600; color: var(--red-600); display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .card__more svg { transform: translateX(4px); }

.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  height: 100%;
}
.feature__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--navy-700); margin-bottom: 14px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .94rem; }
.feature p { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
.section--navy .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--navy .feature__icon { background: rgba(255,255,255,.1); color: #fff; }
.section--navy .feature p, .section--navy .feature ul { color: #a9b8d6; }

/* Category tiles */
.cat-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; text-decoration: none !important; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,51,.05) 20%, rgba(6,20,51,.9) 100%); }
.cat-card:hover img { transform: scale(1.06); }
.cat-card__body { position: relative; z-index: 1; padding: 20px; }
.cat-card h3 { color: #fff; margin-bottom: 4px; }
.cat-card small { display: block; color: #ffb3ba; font-weight: 600; letter-spacing: .04em; margin-bottom: 4px; }
.cat-card p { color: #d4ddef; font-size: .9rem; margin: 0; }

/* Split section */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split--reverse > :first-child { order: 2; } }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Software screenshots */
.shots { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots figure { margin: 0; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(255,255,255,.15); }
.shots figcaption { font-size: .85rem; padding: 8px 12px; color: var(--muted); }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-size: 1.6rem; font-weight: 700; color: var(--red-600); margin-bottom: 6px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Chips (industries / filters) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-weight: 500; color: var(--ink); font-size: .95rem; cursor: default; font-family: inherit;
}
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* Video facade */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: var(--shadow);
}
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video button {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: var(--red-600); color: #fff; cursor: pointer; display: grid; place-items: center; transition: transform .2s;
}
.video button:hover { transform: scale(1.08); }
.video button svg { width: 30px; height: 30px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--red-600); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--text); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--red-700), var(--red-600) 45%, #e85a4f);
  color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); display: grid; gap: 20px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #ffe1e4; }
.cta-band .btn--primary { background: #fff; color: var(--red-700); }
.cta-band .btn--primary:hover { background: #fff5f6; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; } .cta-band__actions { justify-content: flex-end; } }

/* ---------- Product detail ---------- */
.product { display: grid; gap: 32px; }
@media (min-width: 960px) { .product { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
.gallery__main {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line);
  aspect-ratio: 4 / 3; display: grid; place-items: center; cursor: zoom-in;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__cap { font-size: .92rem; color: var(--muted); margin: 10px 2px 0; min-height: 1.5em; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery__thumbs button {
  padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff;
  aspect-ratio: 1; transition: border-color .2s;
}
.gallery__thumbs button[aria-current="true"] { border-color: var(--red-600); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .product__gallery { position: sticky; top: calc(var(--header-h) + 20px); } }

.product__info .lead { font-size: 1.08rem; color: var(--ink); }
.product__cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.product__cta .btn { flex: 1 1 200px; }
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 24px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.spec caption { text-align: left; font-weight: 700; color: var(--ink); padding: 0 0 10px; font-size: 1.1rem; }
.spec th, .spec td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec th { width: 46%; background: var(--bg-soft); color: var(--ink); font-weight: 600; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.tags li { background: var(--blue-50); color: var(--navy-700); border-radius: 999px; padding: 4px 12px; font-size: .88rem; font-weight: 500; }
.prose h2 { font-size: 1.35rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

.figure-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.figure-grid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.figure-grid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; padding: 8px; }
.figure-grid figcaption { padding: 10px 14px; font-size: .9rem; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(2,6,23,.92); display: none; align-items: center; justify-content: center; padding: 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 82vh; width: auto; border-radius: 8px; background: #fff; }
.lightbox p { color: #e2e8f0; text-align: center; margin: 12px 0 0; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; display: grid; place-items: center;
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; }

/* Product list page */
.filter-bar { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-bottom: 28px; scrollbar-width: thin; }
.filter-bar .chip { flex: none; }
@media (min-width: 900px) { .filter-bar { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.cat-block { margin-bottom: 56px; }
.cat-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px; margin-bottom: 20px; border-bottom: 2px solid var(--line); padding-bottom: 12px; }
.cat-block__head h2 { margin: 0; font-size: 1.5rem; }
.cat-block__head p { margin: 0; color: var(--muted); }
.cat-block[hidden] { display: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 40px; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.info-item__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); color: var(--navy-700); display: grid; place-items: center; flex: none; }
.info-item__icon svg { width: 22px; height: 22px; }
.info-item strong { display: block; color: var(--ink); }
.info-item a { word-break: break-word; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm); }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.hp { position: absolute !important; left: -9999px !important; }
.alert { border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-weight: 500; }
.alert--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; border: 0; }
.qr { display: flex; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; }
.qr img { width: 120px; height: 120px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb0d0; font-size: .93rem; padding-top: 56px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #cfd9ee; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer-brand img { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 6px 10px; margin-bottom: 16px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: #ff8a95; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.social a:hover { background: rgba(255,255,255,.18); }
.social svg { width: 20px; height: 20px; color: #fff; }
.footer-qr { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.footer-qr img { width: 96px; height: 96px; border-radius: 8px; background: #fff; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 calc(18px + 64px); font-size: .85rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 1024px) { .footer-bottom { padding-bottom: 18px; } }

/* Sticky mobile action bar */
.action-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(15,23,42,.25);
  padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; min-height: 60px; font-size: .78rem; font-weight: 600; color: var(--navy-800); text-decoration: none; }
.action-bar a svg { width: 22px; height: 22px; }
.action-bar a.is-primary { background: var(--red-600); color: #fff; }
@media (min-width: 1024px) { .action-bar { display: none; } }

/* Back to top */
.to-top {
  position: fixed; right: 16px; bottom: 80px; z-index: 80; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--navy-800); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .to-top { bottom: 24px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
