/* ==========================================================================
   ULTRASAFE EQUIPMENTS — Design System
   Premium industrial fire-safety theme. Mobile-first, no framework.
   ========================================================================== */

:root {
  /* Brand */
  --red: #e31e24;
  --red-dark: #b8151b;
  --red-soft: #fdecec;
  --amber: #f79009;
  /* Ink & surfaces */
  --ink: #0f1723;
  --ink-2: #1c2635;
  --slate: #45505e;
  --muted: #6b7583;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-dark: #0c1320;
  --bg-dark-2: #111a2b;
  /* Type */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', var(--font-body);
  /* Effects */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-1: 0 1px 2px rgba(15, 23, 35, .06), 0 4px 14px rgba(15, 23, 35, .06);
  --shadow-2: 0 8px 30px rgba(15, 23, 35, .12);
  --shadow-red: 0 10px 26px rgba(227, 30, 36, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Layout */
  --container: 1320px;
  --header-h: 86px;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
img { border: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: .2px;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--red); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--red-dark); }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid rgba(227, 30, 36, .55); outline-offset: 2px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Honeypot field — off screen for humans, visible to bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 3000;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  transition: top .25s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   Layout utilities
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #aeb6c2; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Section heading pattern */
.sec-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.sec-head.left .eyebrow::before { width: 26px; }
.sec-head h2 { margin-bottom: .35em; }
.sec-head p { color: var(--muted); }

.ic { width: 1.25em; height: 1.25em; vertical-align: -0.22em; flex: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem; line-height: 1.2; letter-spacing: .01em;
  border: 2px solid transparent; text-align: center;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 1.05em; height: 1.05em; }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.btn-light:hover { color: var(--red); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--bg-dark); color: #c3cad4; font-size: .85rem;
  position: relative; z-index: 1002;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.topbar-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.topbar a { color: #dbe1e9; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .ic { width: 1em; height: 1em; color: var(--red); }
.topbar-social { display: flex; align-items: center; gap: 6px; }
.topbar-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08); transition: background .2s var(--ease);
}
.topbar-social a:hover { background: var(--red); }
.topbar-social .ic { color: #fff; width: .85em; height: .85em; }
@media (max-width: 767px) { .topbar-contacts .tb-mail, .topbar-tag { display: none; } }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1001;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(15, 23, 35, .09); }
.site-header .container { display: flex; align-items: center; gap: 26px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { height: 66px; width: auto; border-radius: 8px; }
@media (max-width: 479px) { .brand img { height: 56px; } }

.main-nav { display: none; }
@media (min-width: 1080px) {
  .main-nav { display: block; }
  .nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
  .nav-list > li { position: relative; }
  .nav-list > li > a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 26px 16px; color: var(--ink); font-weight: 600; font-size: .98rem;
    position: relative;
  }
  .nav-list > li > a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px;
    height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .nav-list > li > a:hover::after,
  .nav-list > li.is-current > a::after { transform: scaleX(1); }
  .nav-list > li > a .ic { width: .8em; height: .8em; color: var(--muted); transition: transform .25s var(--ease); }
  .nav-list > li:hover > a .ic, .nav-list > li:focus-within > a .ic { transform: rotate(180deg); }
}

/* Mega menu */
.mega {
  position: absolute; left: 50%; top: 100%; transform: translate(-50%, 14px);
  width: min(1080px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: 28px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 1005;
}
.nav-list > li:hover > .mega,
.nav-list > li:focus-within > .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 6px); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.mega-col-head {
  display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 10px;
  border-bottom: 2px solid var(--bg-soft);
}
.mega-col-head img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.mega-col-head a { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 1.02rem; color: var(--ink); line-height: 1.15; }
.mega-col-head a:hover { color: var(--red); }
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list a {
  display: flex; align-items: baseline; gap: 8px; padding: 5px 0;
  color: var(--slate); font-size: .92rem; line-height: 1.35;
}
.mega-list a::before { content: "›"; color: var(--red); font-weight: 700; flex: none; }
.mega-list a:hover { color: var(--red); }
.mega-range { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px; }
.mega-range-link {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.mega-range-link:hover { border-color: rgba(227,30,36,.4); box-shadow: var(--shadow-1); }
.mega-range-link img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; }
.mega-range-link b { display: block; color: var(--ink); font-size: .92rem; line-height: 1.25; }
.mega-range-link small { color: var(--muted); font-size: .78rem; }
.mega-cta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 14px 20px; margin-top: 4px; }
.mega-cta p { margin: 0; font-size: .92rem; color: var(--slate); }
@media (max-width: 1279px) { .mega { width: min(920px, calc(100vw - 48px)); } }

/* simple dropdown (non-mega) */
.header-cta { display: none; }
@media (min-width: 1200px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
}
.nav-toggle .ic { width: 1.4em; height: 1.4em; }
@media (min-width: 1080px) { .nav-toggle { display: none; } }

/* --------------------------------------------------------------------------
   Mobile drawer
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(10, 15, 25, .55); z-index: 1100;
  opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); z-index: 1101;
  background: var(--bg-dark); color: #cfd6df;
  transform: translateX(102%); transition: transform .32s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: translateX(0); }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer-head img { height: 48px; width: auto; border-radius: 6px; }
.drawer-close { background: rgba(255,255,255,.08); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.drawer-nav { padding: 10px 8px 20px; }
.drawer-nav > ul { list-style: none; margin: 0; padding: 0; }
.drawer-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.07); }
.drawer-nav a { color: #e7ebf0; }
.drawer-link, .drawer-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 14px; font-weight: 600; font-size: 1.02rem; background: none; border: 0; color: #e7ebf0; text-align: left;
}
.drawer-sub-toggle .ic { transition: transform .25s var(--ease); width: 1em; height: 1em; }
.drawer-sub { display: none; padding: 0 14px 12px; list-style: none; margin: 0; }
.drawer-sub li + li { margin-top: 2px; }
.drawer-sub a { display: block; padding: 8px 10px; font-size: .94rem; color: #aeb6c2; border-left: 2px solid rgba(255,255,255,.14); }
.drawer-sub a:hover { color: #fff; border-color: var(--red); }
.drawer-sub .drawer-sub-head { margin-top: 10px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--red); font-size: .92rem; padding: 6px 10px 2px; border-left: 2px solid var(--red); }
li.open > .drawer-sub { display: block; }
li.open > .drawer-sub-toggle .ic { transform: rotate(180deg); }
.drawer-contact { margin-top: auto; padding: 18px 22px 26px; border-top: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.drawer-contact p { display: flex; gap: 10px; margin: 0 0 12px; color: #aeb6c2; }
.drawer-contact .ic { color: var(--red); margin-top: 4px; }
.drawer-contact a { color: #e7ebf0; }

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--bg-dark); overflow: hidden; }
.hero-slides { position: relative; min-height: clamp(480px, 72vh, 720px); }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility .9s; z-index: 1;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-bg { position: absolute; inset: 0; }
.hero-slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 12, 22, .84) 0%, rgba(8, 12, 22, .55) 52%, rgba(8, 12, 22, .25) 100%);
}
.hero-content { position: relative; z-index: 3; max-width: 720px; padding: 90px 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
  color: #ffd8d9; font-size: .84rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(227, 30, 36, .18);
}
.hero-kicker .ic { color: var(--red); }
.hero-content h1, .hero-content .h1 {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 18px;
  font-family: var(--font-head); font-weight: 700; line-height: 1.08; text-transform: uppercase; letter-spacing: .2px;
}
.hero-content p { color: #ccd3dd; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* slide-in text animation */
.hero-slide .hero-content > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero-slide.is-active .hero-content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-content > *:nth-child(2) { transition-delay: .12s; }
.hero-slide.is-active .hero-content > *:nth-child(3) { transition-delay: .24s; }
.hero-slide.is-active .hero-content > *:nth-child(4) { transition-delay: .36s; }

.hero-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; }
.hero-dots button {
  width: 34px; height: 5px; border-radius: 4px; border: 0; padding: 0;
  background: rgba(255,255,255,.35); transition: background .25s var(--ease);
}
.hero-dots button.is-active { background: var(--red); }

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */
.stats-band { background: var(--red); position: relative; z-index: 4; }
.stats-band .container { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats-band .container { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 26px 12px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(255,255,255,.25); }
@media (max-width: 899px) { .stat:nth-child(3)::before { display: none; } }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; color: #fff; line-height: 1.1; }
.stat span { color: #ffd8d9; font-size: .9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }

.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-tag {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  background: rgba(12, 19, 32, .78); color: #fff; font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3, .card-body h4 { margin-bottom: 8px; }
.card-body h3 a, .card-body h4 a { color: var(--ink); }
.card-body h3 a:hover, .card-body h4 a:hover { color: var(--red); }
.card-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  font-weight: 600; font-size: .92rem; color: var(--red);
}
.card-link .ic { transition: transform .25s var(--ease); }
.card:hover .card-link .ic { transform: translateX(5px); }

/* full-card click target */
.card .stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Icon feature cards (why choose / process) */
.icon-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.icon-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 16px; margin-bottom: 18px;
  background: var(--red-soft); color: var(--red);
}
.icon-badge .ic { width: 1.75em; height: 1.75em; }
.icon-card h3 { font-size: 1.3rem; }
.icon-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.svc-includes { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.svc-includes li { display: flex; gap: 9px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.svc-includes .ic { color: var(--red); margin-top: 2px; flex: none; width: 1em; height: 1em; }
.section-dark .svc-includes { border-color: rgba(255,255,255,.1); }
.section-dark .svc-includes li { color: #c3cad4; }
.section-dark .icon-card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.09); }
.section-dark .icon-card p { color: #9aa4b2; }
.section-dark .icon-badge { background: rgba(227,30,36,.16); }

/* Product search */
.product-search {
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin: -14px auto 34px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 20px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.product-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(227,30,36,.1); }
.product-search .ic { color: var(--muted); flex: none; }
.product-search input {
  flex: 1; border: 0; background: none; padding: 10px 4px; font-size: .98rem; color: var(--ink);
}
.product-search input:focus { outline: none; }

/* Category chips (product filter) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px;
  border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  color: var(--ink); font-weight: 600; font-size: .9rem;
  transition: all .22s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--shadow-red); }

/* --------------------------------------------------------------------------
   Split (about) sections
   -------------------------------------------------------------------------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split-media { position: relative; }
.split-media > img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-2);
  aspect-ratio: 5 / 4; object-fit: cover;
}
.split-media::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, rgba(227,30,36,.16) 0 8px, transparent 8px 20px);
}
.split-badge {
  position: absolute; left: 22px; bottom: 22px;
  background: var(--red); color: #fff; border-radius: var(--radius-sm);
  padding: 16px 22px; box-shadow: var(--shadow-red); display: flex; align-items: center; gap: 12px;
}
.split-badge .ic { width: 2em; height: 2em; }
.split-badge b { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; }
.split-badge span { font-size: .8rem; opacity: .9; }
.split-content .rich-text { color: var(--slate); }
.check-list { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 12px; }
@media (min-width: 640px) { .check-list.cols { grid-template-columns: 1fr 1fr; } }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink-2); }
.check-list .ic { color: var(--red); margin-top: 4px; }

/* --------------------------------------------------------------------------
   Process timeline
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; counter-reset: step; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(var(--steps, 6), 1fr); gap: 18px; }
  .timeline li::after {
    content: ""; position: absolute; top: 52px; left: calc(50% + 58px); right: calc(-50% + 58px);
    height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
  }
  .timeline li:last-child::after { display: none; }
}
.timeline li { position: relative; text-align: center; counter-increment: step; }
.timeline .step-icon {
  width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--line); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: visible; transition: border-color .3s var(--ease), transform .3s var(--ease);
  box-shadow: var(--shadow-1);
}
.timeline li:hover .step-icon { border-color: var(--red); transform: translateY(-4px); }
.timeline .step-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.timeline .step-icon::after {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.timeline h3 { font-size: 1.05rem; margin: 0; text-transform: uppercase; }
.section-dark .timeline .step-icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }

/* --------------------------------------------------------------------------
   Industries
   -------------------------------------------------------------------------- */
.industry {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  padding: 26px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.industry .ic { width: 2.1em; height: 2.1em; color: var(--red); }
.industry:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); border-color: rgba(227,30,36,.35); }
.industries-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .industries-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .industries-grid { grid-template-columns: repeat(5, 1fr); } }
button.industry { cursor: pointer; font-family: inherit; }
.industry.is-active { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); box-shadow: var(--shadow-1); }
.industry-panel {
  margin-top: 26px; background: #fff; border: 1px solid rgba(227,30,36,.3); border-radius: var(--radius);
  box-shadow: var(--shadow-1); padding: clamp(20px, 3vw, 30px);
  animation: panel-in .35s var(--ease) both;
}
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.industry-panel-head h3 { font-size: 1.3rem; margin-bottom: 4px; }
.industry-panel-head p { color: var(--slate); font-size: .95rem; }
.industry-products { display: grid; gap: 12px; margin: 16px 0 18px; }
@media (min-width: 720px) { .industry-products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .industry-products { grid-template-columns: repeat(4, 1fr); } }
.industry-product {
  display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--bg-soft); transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.industry-product:hover { border-color: var(--red); transform: translateY(-2px); }
.industry-product img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.industry-product b { display: block; color: var(--ink); font-size: .9rem; line-height: 1.25; }
.industry-product small { color: var(--muted); font-size: .76rem; }
.industry-panel-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   Carousel (scroll-snap)
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%;
  gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 22px; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .carousel-track { grid-auto-columns: 46%; } }
@media (min-width: 1024px) { .carousel-track { grid-auto-columns: 31.5%; } }
.carousel-nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.carousel-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  transition: all .22s var(--ease);
}
.carousel-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.carousel-btn[disabled] { opacity: .35; pointer-events: none; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-1); height: 100%;
  display: flex; flex-direction: column; gap: 16px;
}
.testimonial-quote .ic { width: 2em; height: 2em; color: var(--red-soft); color: rgba(227,30,36,.3); }
.testimonial p { color: var(--slate); font-size: .97rem; margin: 0; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.testimonial-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-author b { display: block; color: var(--ink); font-size: .98rem; }
.testimonial-author span { font-size: .82rem; color: var(--muted); }
.testimonial-stars { color: var(--amber); display: flex; gap: 2px; }
.testimonial-stars .ic { width: .95em; height: .95em; }

/* --------------------------------------------------------------------------
   FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: box-shadow .25s var(--ease);
}
.faq[open] { box-shadow: var(--shadow-1); border-color: rgba(227,30,36,.3); }
.faq summary {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; color: var(--red); transition: transform .3s var(--ease); }
.faq[open] summary .ic { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--slate); font-size: .96rem; }
.faq-a p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--red-dark), var(--red));
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background: radial-gradient(circle at 85% 20%, #fff 0, transparent 42%),
              repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 2px, transparent 2px 26px);
}
.cta-band .container {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  justify-content: space-between; padding-top: 52px; padding-bottom: 52px;
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #ffe1e2; margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero { position: relative; background: var(--bg-dark); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,12,22,.72), rgba(8,12,22,.82));
}
.page-hero .container { position: relative; z-index: 2; padding-top: clamp(64px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: #ffd8d9; }
.breadcrumbs li + li::before { content: "/"; color: rgba(255,255,255,.4); margin-right: 6px; }
.breadcrumbs a { color: #cfd6df; }
.breadcrumbs a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Detail pages
   -------------------------------------------------------------------------- */
.detail-layout { display: grid; gap: 40px; }
@media (min-width: 992px) { .detail-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.detail-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.detail-gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
}
.detail-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.detail-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.detail-thumbs button {
  width: 76px; height: 76px; border-radius: var(--radius-sm); overflow: hidden; padding: 0;
  border: 2px solid var(--line); background: #fff; transition: border-color .2s var(--ease);
}
.detail-thumbs button.is-active, .detail-thumbs button:hover { border-color: var(--red); }
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 8px; }
.detail-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 18px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.detail-meta li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-2); border-radius: 999px; padding: 8px 16px;
}
.detail-meta .ic { color: var(--red); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

/* Rich text from CMS */
.rich-text { color: var(--slate); overflow-wrap: break-word; }
.rich-text h2, .rich-text h3, .rich-text h4 { margin-top: 1.3em; text-transform: none; font-size: 1.35rem; }
.rich-text img { border-radius: var(--radius-sm); height: auto !important; margin: 10px 0; }
.rich-text table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .94rem; }
.rich-text table td, .rich-text table th { border: 1px solid var(--line); padding: 10px 12px; }
.rich-text a { word-break: break-all; }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.contact-cards { display: grid; gap: 20px; }
.contact-card {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.contact-card .icon-badge { width: 52px; height: 52px; margin: 0; flex: none; border-radius: 12px; }
.contact-card h3 { font-size: 1.12rem; margin-bottom: 4px; text-transform: uppercase; }
.contact-card p, .contact-card address { margin: 0; font-style: normal; color: var(--slate); font-size: .95rem; }
.contact-card a { color: var(--ink-2); font-weight: 600; }
.contact-card a:hover { color: var(--red); }

.info-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.info-table th, .info-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { color: var(--ink-2); font-weight: 600; white-space: nowrap; width: 42%; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   Clients (logo wall + strip)
   -------------------------------------------------------------------------- */
.clients-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(5, 1fr); } }
.client-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.client-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-1); border-color: rgba(227,30,36,.3); }
.client-logo {
  height: 72px; width: 100%; display: flex; align-items: center; justify-content: center;
}
.client-logo img {
  max-height: 72px; max-width: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .82; transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.client-card:hover .client-logo img { filter: none; opacity: 1; }
.client-card h3 { font-size: .95rem; font-family: var(--font-body); font-weight: 600; color: var(--ink-2); margin: 0; text-transform: none; }

/* Compact strip on the homepage */
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; align-items: center; }
.logo-strip img {
  height: 52px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1); opacity: .75; transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logo-strip a:hover img, .logo-strip img:hover { filter: none; opacity: 1; }

/* Major project image cards */
.subhead-center { text-align: center; font-size: 1.35rem; margin: 0 0 26px; position: relative; padding-bottom: 14px; }
.subhead-center::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 46px; height: 3px; background: var(--red); border-radius: 3px; }
.project-card .card-media { aspect-ratio: 16 / 10; }
.project-card .project-loc { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--red); margin: 0 0 10px; }
.project-card .project-loc .ic { width: 1em; height: 1em; }
.project-card p { color: var(--muted); font-size: .92rem; }
.project-highlights { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.project-highlights li { display: flex; gap: 9px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); }
.project-highlights .ic { color: var(--red); margin-top: 2px; flex: none; width: 1em; height: 1em; }

/* Multi-column client name list */
.name-columns { columns: 1; column-gap: 34px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .name-columns { columns: 2; } }
@media (min-width: 1024px) { .name-columns { columns: 3; } }
.name-columns li {
  break-inside: avoid; display: flex; gap: 10px; align-items: baseline;
  padding: 7px 0; font-size: .94rem; color: var(--ink-2); border-bottom: 1px dashed var(--line);
}
.name-columns li::before { content: "›"; color: var(--red); font-weight: 700; flex: none; }

/* --------------------------------------------------------------------------
   Data table (project register)
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-1); }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.data-table th {
  background: var(--ink); color: #fff; text-align: left; padding: 14px 18px;
  font-family: var(--font-head); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.data-table td { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--slate); vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.data-table tbody tr:hover { background: var(--red-soft); }
.data-table td:first-child { color: var(--ink-2); font-weight: 600; }
.badge-type {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Interactive product explorer (explore.php)
   -------------------------------------------------------------------------- */
.page-hero-sm .container { padding-top: clamp(44px, 6vw, 70px); padding-bottom: clamp(44px, 6vw, 70px); }
.page-hero-sub { color: #ccd3dd; max-width: 62ch; margin: 0 auto 14px; }
.range-switch { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 900; }

.showcase { position: relative; padding: clamp(40px, 6vw, 70px) 0 90px; }
.showcase-progressbar {
  position: sticky; top: calc(var(--header-h) + 57px); z-index: 899;
  height: 4px; background: var(--line); margin-bottom: 30px;
}
.showcase-progressbar span {
  display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--amber));
  transition: width .4s var(--ease);
}
.showcase-layout { display: grid; gap: 40px; }
@media (min-width: 992px) { .showcase-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; } }

.showcase-viewer {
  display: none;
}
@media (min-width: 992px) {
  .showcase-viewer {
    display: block; position: sticky; top: calc(var(--header-h) + 80px);
    align-self: start; text-align: center;
  }
}
.viewer-counter { font-family: var(--font-head); font-size: 1.05rem; color: var(--muted); margin-bottom: 10px; }
.viewer-counter b { color: var(--red); font-size: 1.5rem; }
.viewer-stage {
  position: relative; aspect-ratio: 1 / 1; max-height: 46vh;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-1); overflow: hidden;
}
.viewer-img {
  position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px);
  object-fit: contain; opacity: 0; transform: scale(.94) translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.viewer-img.is-active { opacity: 1; transform: none; }
.viewer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin: 14px 0 10px; min-height: 1.4em; }
.viewer-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin-bottom: 12px;
  scrollbar-width: none; justify-content: safe center;
}
.viewer-thumbs::-webkit-scrollbar { display: none; }
.viewer-thumbs button {
  flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; padding: 3px;
  border: 2px solid var(--line); background: #fff; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.viewer-thumbs button:hover { transform: translateY(-2px); }
.viewer-thumbs button.is-active { border-color: var(--red); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.viewer-nav { display: flex; gap: 10px; justify-content: center; }
.viewer-hint { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

.showcase-stories { display: grid; gap: 34px; }
.story {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-1);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), opacity .35s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 90px);
}
@media (min-width: 992px) {
  .story { opacity: .55; }
  .story.is-active { opacity: 1; border-color: rgba(227,30,36,.45); box-shadow: var(--shadow-2); }
  .story-media { display: none; }
}
.story-media { margin: -6px 0 16px; text-align: center; }
.story-media img { max-height: 240px; width: auto; object-fit: contain; }
.story-step {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.story h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 10px; text-transform: none; }
.class-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.class-badge {
  display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--red-soft); color: var(--red-dark); border: 1px solid rgba(227,30,36,.25);
}
.class-badge.is-elec { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.story-desc { color: var(--slate); }
.story-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.story-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.story-points .ic { color: var(--red); margin-top: 3px; flex: none; }

.spec-acc { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 18px; overflow: hidden; }
.spec-acc summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 18px; cursor: pointer; font-weight: 600; color: var(--ink); background: var(--bg-soft); font-size: .93rem;
}
.spec-acc summary::-webkit-details-marker { display: none; }
.spec-acc summary .ic { color: var(--red); transition: transform .3s var(--ease); }
.spec-acc[open] summary .ic { transform: rotate(180deg); }
.spec-acc .spec-table { margin: 0; }
.spec-acc .form-note { padding: 10px 18px 14px; margin: 0; }
.spec-table th, .spec-table td { font-size: .9rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--red); font-weight: 600; cursor: pointer; font-size: inherit; text-decoration: underline; }
.link-btn:hover { color: var(--red-dark); }

.story-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.compare-check {
  display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600;
  color: var(--ink-2); cursor: pointer; padding: 10px 14px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease);
}
.compare-check:hover { border-color: var(--red); }
.compare-check input { accent-color: var(--red); width: 16px; height: 16px; }

.compare-tray[hidden] { display: none; }
.compare-tray {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1210;
  display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  background: var(--ink); color: #fff; border-radius: 999px; box-shadow: var(--shadow-2);
  font-size: .92rem; white-space: nowrap;
}
.modal-wide { width: min(880px, calc(100vw - 32px)); }
.compare-table th { position: sticky; left: 0; background: var(--ink); z-index: 1; min-width: 130px; }
.compare-table td { text-align: center; min-width: 150px; vertical-align: top; }

/* System diagram */
.system-diagram { position: relative; max-width: 780px; margin: 0 auto; }
.system-diagram svg { width: 100%; height: auto; display: block; }
.hotspot {
  position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; border: 3px solid #fff; font-weight: 700; font-size: .9rem;
  box-shadow: 0 2px 10px rgba(227,30,36,.5); cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease);
  animation: hotspot-pulse 2.6s infinite;
}
.hotspot:hover { transform: scale(1.15); }
.hotspot.is-active { background: var(--ink); animation: none; }
@keyframes hotspot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(227,30,36,.45); }
  70% { box-shadow: 0 0 0 12px rgba(227,30,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(227,30,36,0); }
}
.diagram-info {
  max-width: 780px; margin: 22px auto 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-1); min-height: 96px;
}
.diagram-info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.diagram-info p { margin-bottom: 8px; color: var(--slate); font-size: .95rem; }
.diagram-info-hint { color: var(--muted); margin: 0; }

/* Detection chain */
.chain { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 900px) { .chain { grid-template-columns: repeat(5, 1fr); } }
.chain-step {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 18px 12px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff;
  cursor: pointer; transition: all .22s var(--ease); position: relative;
}
.chain-step .ic { width: 1.9em; height: 1.9em; color: var(--red); }
.chain-step b { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); text-transform: uppercase; }
.chain-step span { font-size: .8rem; color: var(--muted); }
.chain-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.chain-step.is-active { border-color: var(--red); background: var(--red-soft); }
@media (min-width: 900px) {
  .chain li { position: relative; }
  .chain li + li::before { content: "→"; position: absolute; left: -13px; top: 50%; transform: translateY(-50%); color: var(--red); font-weight: 700; z-index: 2; }
}
.chain-info {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-1); max-width: 860px; margin: 0 auto;
}
.chain-info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.chain-info p { margin: 0; color: var(--slate); font-size: .95rem; }

/* Product finder */
.finder { max-width: 860px; margin: 0 auto; display: grid; gap: 26px; }
.finder-q h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.finder .chip-row { justify-content: flex-start; margin: 0; }
.finder .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #dbe1e9; }
.finder .chip:hover { border-color: var(--red); color: #fff; }
.finder .chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.finder-result { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }
.finder-result h3 { color: #fff; }
.finder-picks { display: grid; gap: 14px; margin-bottom: 14px; }
@media (min-width: 720px) { .finder-picks { grid-template-columns: repeat(3, 1fr); } }
.finder-pick {
  display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 14px;
}
.finder-pick img { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.finder-pick b { display: block; color: #fff; font-size: .95rem; line-height: 1.3; }
.finder-pick span { display: block; color: #9aa4b2; font-size: .8rem; margin: 4px 0 8px; }
.finder-pick-actions { display: flex; gap: 14px; align-items: center; }
.finder-pick-actions .link-btn { color: #ff8c90; text-decoration: none; font-size: .85rem; }
.enquiry-for { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; color: var(--slate); margin: 0; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); padding: clamp(24px, 4vw, 40px);
}
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink-2); margin-bottom: 7px; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: #fff;
  box-shadow: 0 0 0 4px rgba(227, 30, 36, .12);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .error-msg { display: none; color: var(--red-dark); font-size: .82rem; margin-top: 6px; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); background: #fff; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.alert-success {
  display: flex; gap: 10px; align-items: flex-start; background: #ecfdf3; border: 1px solid #a6f4c5;
  color: #067647; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; font-size: .95rem;
}

/* --------------------------------------------------------------------------
   Modal dialog
   -------------------------------------------------------------------------- */
.modal { border: 0; border-radius: var(--radius); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: var(--shadow-2); }
.modal::backdrop { background: rgba(10, 15, 25, .6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 20px 26px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.modal-head h2 { font-size: 1.35rem; margin: 0; }
.modal-close { background: #fff; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.modal-close:hover { color: var(--red); border-color: var(--red); }
.modal-body { padding: 26px; max-height: min(72vh, 640px); overflow-y: auto; }
.modal .form-grid { grid-template-columns: 1fr; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 26px; border-top: 1px solid var(--line); }
body.modal-open { overflow: hidden; }
/* dialog fallback when <dialog> unsupported */
.modal[data-fallback] { display: none; position: fixed; z-index: 1300; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
.modal[data-fallback].open { display: block; }
.modal-fallback-backdrop { display: none; position: fixed; inset: 0; z-index: 1299; background: rgba(10,15,25,.6); }
.modal-fallback-backdrop.open { display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: #aeb6c2; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--amber)); }
.footer-main { padding: clamp(52px, 7vw, 80px) 0 40px; }
.footer-grid { display: grid; gap: 38px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1.8fr 1.7fr; gap: 44px; } }
.footer-brand img { height: 64px; width: auto; border-radius: 8px; margin-bottom: 16px; }
.footer-brand h2 { color: #fff; font-size: 1.5rem; }
.footer-name { margin-bottom: 4px; letter-spacing: .04em; line-height: 1.15; }
.footer-slogan {
  color: var(--red); font-weight: 600; font-size: .95rem; letter-spacing: .06em;
  margin: 0 0 14px; display: inline-flex; align-items: center; gap: 9px;
}
.footer-slogan::before { content: ""; width: 22px; height: 2px; background: var(--red); flex: none; }
.footer-about { font-size: .93rem; }
.footer-col h3 {
  color: #fff; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px;
  position: relative; padding-bottom: 12px;
}
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--red); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #aeb6c2; display: inline-flex; align-items: center; gap: 8px; font-size: .94rem; transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-links a::before { content: "›"; color: var(--red); font-weight: 700; }
.footer-links a:hover { color: #fff; transform: translateX(4px); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .93rem; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ic { color: var(--red); margin-top: 4px; flex: none; }
.footer-contact a { color: #dbe1e9; }
.footer-contact a:hover { color: #fff; }
.footer-contact strong { color: #fff; }
.footer-map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .87rem; color: #ff8c90 !important; }
.footer-map-link:hover { color: #fff !important; }
.footer-map-link .ic { width: .95em; height: .95em; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); color: #fff; transition: background .22s var(--ease), transform .22s var(--ease);
}
.footer-social a:hover { background: var(--red); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; font-size: .86rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #dbe1e9; }

/* --------------------------------------------------------------------------
   Floating action buttons
   -------------------------------------------------------------------------- */
.fab-stack { position: fixed; right: 18px; bottom: 18px; z-index: 1200; display: flex; flex-direction: column; gap: 12px; }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-2); border: 0;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.fab:hover { transform: translateY(-4px) scale(1.05); color: #fff; }
.fab .ic { width: 1.5em; height: 1.5em; }
.fab-call { background: var(--red); }
.fab-wa { background: #25d366; }
.fab-wa:hover { box-shadow: 0 10px 24px rgba(37, 211, 102, .4); }
.fab-call { animation: fab-pulse 2.4s infinite; }
@keyframes fab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 30, 36, .45); }
  70% { box-shadow: 0 0 0 16px rgba(227, 30, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 30, 36, 0); }
}
.scroll-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 1200;
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-1); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .3s var(--ease);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* --------------------------------------------------------------------------
   Thank-you page
   -------------------------------------------------------------------------- */
.thankyou-box { max-width: 620px; margin: 0 auto; text-align: center; }
.thankyou-box .ty-icon {
  width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%;
  background: #ecfdf3; color: #12b76a; display: flex; align-items: center; justify-content: center;
  animation: ty-pop .5s var(--ease) both;
}
.thankyou-box .ty-icon .ic { width: 3em; height: 3em; }
@keyframes ty-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --------------------------------------------------------------------------
   Scroll-reveal animations
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; } .reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; } .reveal-d4 { transition-delay: .4s; }

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

/* --------------------------------------------------------------------------
   Large & ultra-wide screens
   -------------------------------------------------------------------------- */
@media (min-width: 1800px) {
  :root { --container: 1440px; }
  body { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .site-footer, .fab-stack, .scroll-top, .hero-dots, .drawer, .drawer-backdrop { display: none !important; }
}
