/* ==========================================================================
   JiaxiTrade — Redesign 2026
   Dark-tech hero + light content pages · Western B2B aesthetic
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --navy-950: #060d1a;
  --navy-900: #0a1830;
  --navy-800: #10234a;
  --navy-700: #16305f;

  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-400: #94a3b8;

  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fe;
  --bg-tint: #eef4fd;

  /* Type */
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07), 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10), 0 32px 72px rgba(15, 23, 42, 0.10);

  --container: 1160px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--ink-900);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; }

::selection { background: var(--blue-100); color: var(--navy-900); }

/* ---------- Layout primitives ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.section-title { font-size: clamp(28px, 4vw, 40px); }
.section-sub { font-size: 17px; color: var(--ink-600); margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn--primary:hover { background: var(--blue-700); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink-400); color: var(--ink-900); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn--sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Over dark hero */
.site-header:not(.is-solid) { color: #fff; }
.site-header:not(.is-solid) .logo,
.site-header:not(.is-solid) .nav__link { color: #fff; }
.site-header:not(.is-solid) .nav__link:hover { color: var(--blue-200); }
.site-header:not(.is-solid) .logo-tag { color: rgba(255, 255, 255, 0.55); }
.site-header:not(.is-solid) .btn--quote {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.site-header:not(.is-solid) .btn--quote:hover { background: rgba(255, 255, 255, 0.2); }
.site-header:not(.is-solid) .burger span { background: #fff; }

/* Solid state (scrolled, or light page) */
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
  color: var(--ink-900);
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.logo:hover { color: inherit; }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.logo-mark svg { width: 18px; height: 18px; }

.logo-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-top: -2px;
}

.nav { display: flex; align-items: center; gap: 28px; }

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
  padding: 4px 0;
}
.nav__link:hover { color: var(--blue-600); }
.nav__link.is-active { color: var(--blue-600); font-weight: 600; }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue-600);
}

.header-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink-900);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  padding: 12px 24px 24px;
  display: none;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav .btn { width: 100%; margin-top: 12px; }

/* ---------- Hero (dark, starry) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 78% 18%, rgba(59, 130, 246, 0.22), transparent 62%),
    radial-gradient(760px 420px at 12% 88%, rgba(37, 99, 235, 0.16), transparent 60%),
    linear-gradient(178deg, var(--navy-950) 0%, var(--navy-900) 46%, #0e2144 100%);
  color: #fff;
  padding: calc(var(--header-h) + 84px) 0 108px;
  overflow: hidden;
}

/* star field */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.2px 1.2px at 22% 18%, rgba(255,255,255,0.8), transparent 55%),
    radial-gradient(1px 1px at 64% 8%, rgba(255,255,255,0.65), transparent 55%),
    radial-gradient(1.4px 1.4px at 84% 30%, rgba(255,255,255,0.55), transparent 55%),
    radial-gradient(1px 1px at 38% 34%, rgba(255,255,255,0.5), transparent 55%),
    radial-gradient(1.2px 1.2px at 8% 44%, rgba(255,255,255,0.45), transparent 55%),
    radial-gradient(1px 1px at 52% 22%, rgba(255,255,255,0.6), transparent 55%),
    radial-gradient(1px 1px at 92% 12%, rgba(255,255,255,0.5), transparent 55%),
    radial-gradient(1.2px 1.2px at 74% 44%, rgba(255,255,255,0.4), transparent 55%);
  pointer-events: none;
}

/* horizon dunes */
.hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -140px;
  height: 320px;
  background: radial-gradient(58% 100% at 50% 100%, rgba(56, 116, 220, 0.30), transparent 70%);
  transform: rotate(-2deg);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-200);
  margin-bottom: 26px;
}

.hero__title {
  color: #fff;
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(92deg, var(--blue-400), #7cc4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(226, 236, 250, 0.82);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(226, 236, 250, 0.85);
}
.hero__chip svg { width: 15px; height: 15px; color: var(--blue-400); flex: none; }

/* product showcase card */
.hero__visual { position: relative; }

.showcase {
  position: relative;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 80px rgba(2, 8, 20, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  padding: 22px;
}
.showcase__img {
  border-radius: calc(var(--r-xl) - 10px);
  overflow: hidden;
  background: #fff;
}
.showcase__img img { width: 100%; height: auto; }

.showcase__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 6px 2px;
  font-size: 13.5px;
  color: rgba(226, 236, 250, 0.78);
}
.showcase__caption strong { color: #fff; font-weight: 600; }

/* floating stat chips */
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-900);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.3;
}
.float-chip strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
.float-chip svg { width: 22px; height: 22px; color: var(--blue-600); flex: none; }

.float-chip--tl { top: -20px; left: -26px; }
.float-chip--br { bottom: -20px; right: -18px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-950); color: #fff; padding: 40px 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: left; padding-left: 22px; border-left: 2px solid rgba(96, 165, 250, 0.45); }
.stat__num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.stat__label { font-size: 13.5px; color: rgba(226, 236, 250, 0.66); margin-top: 2px; }

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-600); margin: 0; }

/* ---------- Product feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.media-stack { position: relative; }
.media-stack__main {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.media-stack__sub {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 46%;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: var(--shadow-lg);
}

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin: 26px 0 30px; }
.spec-list div { font-size: 14px; color: var(--ink-600); }
.spec-list strong {
  display: block;
  font-size: 19px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

/* ---------- Engineering layers ---------- */
.layers { display: grid; gap: 14px; }
.layer {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.layer__no {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.layer h4 { font-size: 15.5px; margin: 2px 0 2px; }
.layer p { font-size: 13.5px; margin: 0; color: var(--ink-600); }

.kpi-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 22px;
}

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--bg-soft);
}
.spec-table td { color: var(--ink-600); }
.spec-table .group td {
  background: var(--navy-900);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
}

/* ---------- Scenario cards ---------- */
.scene {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-md);
}
.scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.5s ease;
}
.scene:hover img { transform: scale(1.045); }
.scene__body {
  position: relative;
  width: 100%;
  padding: 76px 26px 24px;
  background: linear-gradient(180deg, transparent, rgba(6, 13, 26, 0.88) 62%);
}
.scene__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-200);
  margin-bottom: 6px;
}
.scene__body h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.scene__body p { font-size: 13.5px; color: rgba(226, 236, 250, 0.78); margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step__no {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.step__no::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--blue-600);
  border-radius: 2px;
}
.step h3 { font-size: 17px; }
.step p { font-size: 14px; color: var(--ink-600); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(720px 340px at 82% 20%, rgba(59, 130, 246, 0.35), transparent 62%),
    linear-gradient(150deg, var(--navy-950), var(--navy-800));
  border-radius: var(--r-xl);
  color: #fff;
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.cta-band p { color: rgba(226, 236, 250, 0.78); margin: 0; max-width: 520px; }
.cta-band .btn--primary { flex: none; }
.cta-band .btn--ghost-light { flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(226, 236, 250, 0.72);
  padding: 72px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 56px;
}
.site-footer .logo, .site-footer .logo-tag { color: #fff; }
.site-footer .logo-tag { color: rgba(226, 236, 250, 0.5); }
.footer-blurb { margin-top: 16px; max-width: 300px; }

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(226, 236, 250, 0.72); }
.footer-col a:hover { color: #fff; }

.footer-note { margin-top: 18px; font-size: 12.5px; color: rgba(226, 236, 250, 0.45); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(226, 236, 250, 0.45);
}
.footer-badges { display: flex; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Product page
   ========================================================================== */

.page-hero {
  padding: calc(var(--header-h) + 64px) 0 72px;
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(59, 130, 246, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-soft), #fff);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-400);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--ink-400); }
.breadcrumb a:hover { color: var(--blue-600); }
.breadcrumb .current { color: var(--ink-900); font-weight: 600; }

.product-hero { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 72px; align-items: center; }

.model-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.product-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.product-hero__desc { font-size: 16.5px; color: var(--ink-600); max-width: 520px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 15px; height: 15px; color: var(--blue-600); }

.moq-line { font-size: 14px; color: var(--ink-600); margin: 0 0 26px; }
.moq-line strong { color: var(--ink-900); }

.product-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* gallery */
.gallery { position: relative; }
.gallery__main {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
}
.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}
.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.gallery__thumb {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
  background: #fff;
  aspect-ratio: 4 / 3;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--blue-600); }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--blue-200); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-50) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%232563eb" stroke-width="3" stroke-linecap="round"><path d="M12 5v14M5 12h14"/></svg>') center / 11px no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__body { padding: 0 24px 22px; font-size: 14.5px; color: var(--ink-600); margin: 0; }

/* personas */
.persona-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.persona-tags span {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: 6px 16px;
  border-radius: 999px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scene img, .card, .btn { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .section { padding: 72px 0; }

  .hero__grid { gap: 44px; }
  .float-chip--tl { left: -8px; }
  .float-chip--br { right: -6px; }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }

  .split, .product-hero { gap: 48px; }
  .media-stack__sub { right: -10px; bottom: -24px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .burger { display: flex; }

  .hero { padding: calc(var(--header-h) + 56px) 0 84px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero__sub { max-width: 100%; }

  .split, .product-hero { grid-template-columns: 1fr; }
  .split--media-first .media-stack { order: -1; }
  .media-stack__sub { width: 42%; }

  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 24px; }

  .cta-band { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 40px); }
  .section { padding: 60px 0; }

  .grid-4 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat__num { font-size: 24px; }

  .spec-list { grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .float-chip { padding: 9px 13px; font-size: 12px; }
  .float-chip strong { font-size: 14px; }
  .float-chip svg { width: 18px; height: 18px; }
  .float-chip--tl { top: -14px; }
  .float-chip--br { bottom: -14px; }

  .spec-table th, .spec-table td { padding: 12px 14px; font-size: 13.5px; }
  .spec-table .group td { padding: 8px 14px; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .hero__actions .btn { width: 100%; }
}

/* ==========================================================================
   Catalog & category browsing (added 2026-11)
   ========================================================================== */

/* ---------- Home category tiles ---------- */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--blue-200);
  box-shadow: var(--shadow-md);
}
.cat-tile__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.cat-tile__icon svg { width: 21px; height: 21px; }
.cat-tile__name { font-size: 14.5px; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.cat-tile__count { font-size: 12.5px; color: var(--ink-400); }

/* ---------- Catalog hero ---------- */
.catalog-hero__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.catalog-hero__terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 14px;
  box-shadow: var(--shadow-md);
}
.catalog-hero__terms > div { text-align: center; padding: 0 8px; border-right: 1px solid var(--line); }
.catalog-hero__terms > div:last-child { border-right: none; }
.catalog-hero__terms strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-600);
  line-height: 1.1;
}
.catalog-hero__terms span { display: block; font-size: 11.5px; color: var(--ink-600); line-height: 1.35; margin-top: 5px; }

/* ---------- Toolbar ---------- */
.catalog-section { padding-top: 48px; }

.catalog-toolbar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.catalog-search { position: relative; flex: 1; min-width: 0; }
.catalog-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--ink-400);
}
.catalog-search input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink-900);
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-search input:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  background: #fff;
}

.catalog-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-600); white-space: nowrap; }
.catalog-sort select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-900);
  font-size: 13.5px;
  cursor: pointer;
  outline: none;
}

.catalog-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-900);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.catalog-filter-toggle svg { width: 17px; height: 17px; }

/* ---------- Layout ---------- */
.catalog-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.catalog-sidebar { position: sticky; top: calc(var(--header-h) + 92px); }

.catalog-sidebar__title {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
}

.cat-links { display: flex; flex-direction: column; gap: 2px; }
.cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.cat-link:hover { background: var(--bg-soft); color: var(--ink-900); }
.cat-link.is-active {
  background: var(--blue-50);
  border-color: var(--blue-100);
  color: var(--blue-700);
  font-weight: 700;
}
.cat-link__count { font-size: 12px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.cat-link.is-active .cat-link__count { color: var(--blue-600); }

.sidebar-terms {
  margin-top: 28px;
  padding: 20px;
  background: var(--navy-950);
  color: rgba(226, 236, 250, 0.78);
  border-radius: var(--r-md);
  font-size: 13px;
}
.sidebar-terms h3 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.sidebar-terms p { margin-bottom: 9px; }
.sidebar-terms strong { color: #fff; }
.sidebar-terms__note {
  font-size: 11.5px;
  color: rgba(226, 236, 250, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
  margin-top: 14px !important;
}
.sidebar-terms .btn { margin-top: 4px; width: 100%; }

/* ---------- Result bar & grid ---------- */
.catalog-result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ink-600);
}
.catalog-result-bar span:first-child { font-weight: 700; color: var(--ink-900); }
.catalog-result-bar__hint { font-size: 12.5px; color: var(--ink-400); }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.prod-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
}
.prod-card[hidden] { display: none !important; }

.prod-thumb {
  position: relative;
  height: 132px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: #2563eb;
  overflow: hidden;
}
.prod-thumb::after {
  content: "";
  position: absolute;
  inset: auto -30% -70% auto;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}
.prod-thumb__icon { width: 46px; height: 46px; position: relative; z-index: 1; }

/* Photo cards: show the entire product, uncropped, correctly proportioned. */
.prod-thumb.has-photo {
  height: 210px;
  overflow: hidden;
  background: #ffffff;
}
.prod-thumb.has-photo::after { display: none; }
.prod-thumb__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 14px 16px;
  margin: 0;
  z-index: 1;
  background: #ffffff;
  max-width: none;
}
.prod-thumb__code {
  position: absolute;
  left: 12px; bottom: 10px;
  z-index: 1;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy-900);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prod-thumb--medical  { background: linear-gradient(145deg, #eff6ff, #dbeafe); color: #2563eb; }
.prod-thumb--smart    { background: linear-gradient(145deg, #f5f3ff, #ede9fe); color: #7c3aed; }
.prod-thumb--litter   { background: linear-gradient(145deg, #ecfeff, #cffafe); color: #0891b2; }
.prod-thumb--dog      { background: linear-gradient(145deg, #fffbeb, #fef3c7); color: #d97706; }
.prod-thumb--water    { background: linear-gradient(145deg, #f0f9ff, #e0f2fe); color: #0284c7; }
.prod-thumb--feeding  { background: linear-gradient(145deg, #f0fdf4, #dcfce7); color: #16a34a; }
.prod-thumb--habitat  { background: linear-gradient(145deg, #f0fdfa, #ccfbf1); color: #0d9488; }
.prod-thumb--travel   { background: linear-gradient(145deg, #eef2ff, #e0e7ff); color: #4f46e5; }
.prod-thumb--leash    { background: linear-gradient(145deg, #fff1f2, #ffe4e6); color: #e11d48; }
.prod-thumb--grooming { background: linear-gradient(145deg, #fdf2f8, #fce7f3); color: #db2777; }
.prod-thumb--toys     { background: linear-gradient(145deg, #fff7ed, #ffedd5); color: #ea580c; }
.prod-thumb--cookware { background: linear-gradient(145deg, #f8fafc, #e2e8f0); color: #475569; }
.prod-thumb--stove    { background: linear-gradient(145deg, #fff7ed, #fed7aa); color: #c2410c; }

.prod-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 16px;
}
.prod-card__cat {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 7px;
}
.prod-card h3 {
  font-size: 15.5px;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.prod-card__model { font-size: 12px; color: var(--ink-400); margin-bottom: 12px; }

.prod-card__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.prod-card__price span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0;
  margin-top: 2px;
}
.prod-card__price--quote { font-size: 15px; color: var(--blue-700); }

.prod-card__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.prod-card__meta div { min-width: 0; }
.prod-card__meta dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.prod-card__meta dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-900);
}
.prod-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-600);
}
.prod-card__cta:hover { color: var(--blue-700); }
.prod-card__cta span { font-size: 17px; line-height: 1; }

.catalog-empty {
  text-align: center;
  padding: 70px 20px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.catalog-empty h3 { font-size: 20px; }
.catalog-empty p { color: var(--ink-600); }

.catalog-more { text-align: center; margin-top: 34px; }
.catalog-more[hidden] { display: none; }

/* ---------- Catalog responsive ---------- */
@media (max-width: 1180px) {
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-hero__grid { gap: 36px; }
}

@media (max-width: 860px) {
  .cat-tiles { grid-template-columns: repeat(2, 1fr); }
  .catalog-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .catalog-toolbar { flex-wrap: wrap; }
  .catalog-filter-toggle { display: inline-flex; }
  .catalog-layout { grid-template-columns: 1fr; gap: 20px; }
  .catalog-sidebar { display: none; position: static; }
  .catalog-sidebar.is-open { display: block; }
  .cat-links { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .cat-tiles { grid-template-columns: 1fr; gap: 10px; }
  .prod-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { padding: 10px; gap: 10px; }
  .catalog-sort span { display: none; }
  .catalog-result-bar__hint { display: none; }
  .cat-links { grid-template-columns: 1fr; }
  .catalog-hero__terms { gap: 2px; padding: 16px 6px; }
  .catalog-hero__terms strong { font-size: 21px; }
  .catalog-hero__terms span { font-size: 10.5px; }
}

.catalog-empty[hidden] { display: none; }

/* ==========================================================================
   Equal-weight product lines & neutral catalog UI (2026-11-20)
   ========================================================================== */

.nav { gap: 20px; }
[id^="group-"] { scroll-margin-top: 100px; }

/* ---------- Neutral hero: three equal rows ---------- */
.hero--neutral { padding-bottom: 96px; }

.hero-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 70px rgba(2, 8, 20, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hero-line:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateX(3px);
  color: #fff;
}
.hero-line__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}
.hero-line__icon svg { width: 22px; height: 22px; }
.hero-line__text { flex: 1; min-width: 0; }
.hero-line__text strong { display: block; font-size: 16px; font-weight: 700; color: #fff; }
.hero-line__text small { display: block; font-size: 12.5px; color: rgba(226, 236, 250, 0.62); margin-top: 2px; }
.hero-line__arrow { font-size: 19px; color: var(--blue-400); }

/* ---------- Equal product-line cards ---------- */
.group-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.group-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-700);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.group-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-200);
  color: inherit;
}

.group-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.group-card__icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-600);
  display: grid; place-items: center;
}
.group-card__icon svg { width: 23px; height: 23px; }
.group-card__no {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  padding-top: 3px;
}

.group-card h3 { font-size: 19px; margin-bottom: 9px; }
.group-card p { font-size: 13.5px; line-height: 1.6; color: var(--ink-600); min-height: 66px; margin-bottom: 18px; }

.group-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.group-card__facts li { min-width: 0; }
.group-card__facts strong { display: block; font-size: 13px; color: var(--ink-900); white-space: nowrap; }
.group-card__facts span { display: block; font-size: 11px; color: var(--ink-400); margin-top: 1px; }

.group-card__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; font-weight: 700; color: var(--blue-600);
}

/* Compact variant used in the catalog hero */
.group-card-grid--compact .group-card { padding: 20px 18px 18px; border-radius: var(--r-md); }
.group-card-grid--compact .group-card__icon { width: 38px; height: 38px; border-radius: 10px; }
.group-card-grid--compact .group-card__icon svg { width: 20px; height: 20px; }
.group-card-grid--compact .group-card h3 { font-size: 16.5px; }
.group-card-grid--compact .group-card p { font-size: 12.5px; min-height: 60px; }
.group-card-grid--compact .group-card__facts { padding: 11px 0; }
.group-card-grid--compact .group-card__facts strong { font-size: 11.5px; }

/* ---------- Neutral catalog hero ---------- */
.catalog-hero--neutral { padding-bottom: 76px; }
.catalog-hero__heading { max-width: 680px; margin-bottom: 40px; }
.catalog-hero__heading h1 { font-size: clamp(30px, 4.4vw, 44px); }
.catalog-hero__heading .product-hero__desc { max-width: 640px; }

/* ---------- Group tabs ---------- */
.group-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.group-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.group-tab span {
  font-size: 11.5px;
  color: var(--ink-400);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 2px 8px;
}
.group-tab:hover { border-color: var(--blue-200); color: var(--ink-900); }
.group-tab.is-active {
  background: var(--navy-950);
  border-color: var(--navy-950);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.group-tab.is-active span { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8); }

/* ---------- Grouped sidebar ---------- */
.cat-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cat-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 8px;
}
.cat-group__no { font-size: 10.5px; font-weight: 800; color: var(--ink-400); letter-spacing: 0.08em; }
.cat-group__title {
  flex: 1;
  text-align: left;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-900);
  cursor: pointer;
}
.cat-group__title:hover { color: var(--blue-600); }
.cat-group__count { font-size: 11px; color: var(--ink-400); }
.cat-link--all { width: 100%; text-align: left; cursor: pointer; border: 1px solid transparent; background: none; font-family: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .group-card-grid { gap: 14px; }
  .group-card { padding: 22px 18px 18px; }
  .group-card__facts strong { font-size: 11.5px; }
}

@media (max-width: 860px) {
  .hero-lines { max-width: 560px; }
  .group-card-grid { grid-template-columns: 1fr; }
  .group-card p { min-height: 0; }
  .group-card-grid--compact .group-card p { min-height: 0; }
  .group-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .group-tabs { gap: 8px; }
  .group-tab { font-size: 12.5px; padding: 11px 8px; }
  .group-card__facts { gap: 4px; }
  .group-card__facts strong { font-size: 11px; }
  .hero-line { padding: 14px 12px; gap: 12px; }
  .hero-line__icon { width: 38px; height: 38px; }
}

/* ==========================================================================
   Contact / enquiry form
   ========================================================================== */
.quote-form { margin-top: 30px; }
.quote-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
}
.quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.quote-form .btn { margin-top: 6px; }
.form-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  color: var(--blue-700);
  font-size: 13.5px;
  font-weight: 600;
}
.form-note[hidden] { display: none; }

@media (max-width: 860px) {
  .quote-form .form-row { grid-template-columns: 1fr; gap: 0; }
}
