/* ==========================================================================
   CATO Global — design system
   Visual language mirroring the CATO corporate identity (cato-chem.com):
   signature red #E7000A, molecular-network hero, search-first navigation,
   white catalogue cards carrying name / CAS / formula / structure.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens */
:root {
  /* brand */
  --brand:        #E7000A;
  --brand-600:    #C8161D;
  --brand-700:    #AE1F31;
  --brand-800:    #93101A;
  --brand-tint:   #FDECEC;
  --brand-tint-2: #FBD9DA;

  /* neutral (Element-UI aligned, as used on the official site) */
  --ink:      #1F2D3D;
  --ink-2:    #46586A;
  --muted:    #6C6C6C;
  --muted-2:  #909399;
  --line:     #E6E6E6;
  --line-2:   #EFEFF1;
  --bg:       #FFFFFF;
  --bg-2:     #F7F8FA;
  --bg-3:     #F2F3F5;

  --ok:  #1FA971;
  --warn:#D98A00;

  /* geometry */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(31,45,61,.06), 0 2px 8px rgba(31,45,61,.05);
  --shadow:    0 4px 10px rgba(31,45,61,.07), 0 12px 30px rgba(31,45,61,.07);
  --shadow-lg: 0 10px 26px rgba(31,45,61,.10), 0 30px 60px rgba(31,45,61,.10);
  --shadow-red: 0 6px 18px rgba(231,0,10,.22);

  --wrap: 1240px;
  --head-h: 68px;

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

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
main { display: block; }
section { padding: clamp(52px, 7vw, 92px) 0; }
.section-tight { padding: clamp(34px, 4.5vw, 56px) 0; }
.bg-2 { background: var(--bg-2); }
.bg-3 { background: var(--bg-3); }
.g-2 { display: grid; gap: clamp(18px, 2.4vw, 30px); grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { display: grid; gap: clamp(16px, 2.2vw, 26px); grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { display: grid; gap: clamp(14px, 1.8vw, 22px); grid-template-columns: repeat(4, minmax(0,1fr)); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.site-header.is-stuck { box-shadow: 0 2px 14px rgba(31,45,61,.08); }
.nav {
  height: var(--head-h);
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 21px; font-weight: 800; letter-spacing: .04em;
  color: var(--brand);
}
.brand-sub { font-size: 9.5px; color: var(--muted); letter-spacing: .02em; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 9px 13px; border-radius: var(--r-sm);
  position: relative; transition: color .16s ease, background .16s ease;
}
.nav-links a:hover { color: var(--brand); background: var(--brand-tint); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* language dropdown */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 11px; border-radius: var(--r-sm);
  transition: background .16s ease, color .16s ease;
}
.lang-btn:hover { background: var(--bg-3); color: var(--brand); }
.lang-btn .chev { transition: transform .2s ease; }
.lang.open .lang-btn { background: var(--bg-3); color: var(--brand); }
.lang.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 210px; max-height: 60vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left; padding: 8px 11px;
  border-radius: var(--r-sm); font-size: 14px; color: var(--ink-2);
  transition: background .14s ease, color .14s ease;
}
.lang-menu button:hover { background: var(--brand-tint); color: var(--brand); }
.lang-menu button .code {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted-2); font-weight: 600;
}
.lang-menu button.on { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.lang-menu button.on .code { color: var(--brand-600); }

.burger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); }
.burger span {
  display: block; width: 19px; height: 2px; margin: 4px auto;
  background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease;
}
.burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease,
              box-shadow .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-tint); }
.btn-glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-glass:hover { background: rgba(255,255,255,.28); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }

.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand); font-weight: 600; font-size: 14px;
}
.tlink:hover { gap: 11px; }
.tlink svg { transition: transform .18s ease; }

/* ---------------------------------------------------------------- hero */
.hero-red {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(64px, 9vw, 118px) 0 clamp(70px, 9vw, 120px);
  background:
    radial-gradient(1100px 560px at 78% 8%, rgba(255,255,255,.18), transparent 62%),
    radial-gradient(900px 620px at 12% 92%, rgba(0,0,0,.20), transparent 60%),
    linear-gradient(140deg, #D3111C 0%, #C8161D 34%, #A50F1C 72%, #8C0A15 100%);
}
.hero-red .mol-bg { position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none; }
.hero-red .wrap { position: relative; z-index: 2; }

.hero-mid { text-align: center; max-width: 900px; margin: 0 auto; }
.hero-demo {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 15px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.hero-demo .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #7CFFC4;
  box-shadow: 0 0 0 0 rgba(124,255,196,.7); animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124,255,196,.65); }
  70%  { box-shadow: 0 0 0 9px rgba(124,255,196,0); }
  100% { box-shadow: 0 0 0 0 rgba(124,255,196,0); }
}
.hero-red h1 {
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 800;
  letter-spacing: -.02em; margin-bottom: 18px;
}
.hero-red h1 em { font-style: normal; color: #FFD9DB; }
.hero-sub {
  font-size: clamp(15px, 1.6vw, 17.5px); color: rgba(255,255,255,.9);
  max-width: 690px; margin: 0 auto 30px;
}

/* big search bar — the signature element of the official site */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: var(--r-pill);
  padding: 7px 7px 7px 24px; max-width: 760px; margin: 0 auto;
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
}
.search-bar input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  font-size: 15px; color: var(--ink); padding: 12px 0;
}
.search-bar input::placeholder { color: var(--muted-2); }
.search-go {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .16s ease, transform .16s ease;
}
.search-go:hover { background: var(--brand-600); transform: scale(1.06); }
.search-struct {
  flex: none; display: flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
  padding: 0 18px; height: 44px; border-radius: var(--r-pill);
  transition: background .16s ease;
}
.search-struct:hover { background: var(--brand-600); }
.search-struct small { display: block; font-size: 9.5px; opacity: .85; line-height: 1; }
.search-hint {
  margin-top: 15px; font-size: 13px; color: rgba(255,255,255,.82);
  display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center;
}
.search-hint b { color: #fff; font-weight: 600; }
.search-hint button {
  color: rgba(255,255,255,.9); border-bottom: 1px dashed rgba(255,255,255,.45);
  padding-bottom: 1px; font-size: 13px;
}
.search-hint button:hover { color: #fff; border-bottom-color: #fff; }

.hero-stats-red {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; margin-top: 52px; background: rgba(255,255,255,.22);
  border-radius: var(--r); overflow: hidden;
}
.hero-stats-red div { background: rgba(140,10,21,.5); padding: 20px 16px; text-align: center; }
.hero-stats-red .n { font-size: clamp(19px, 2.3vw, 26px); font-weight: 800; letter-spacing: -.01em; }
.hero-stats-red .l { font-size: 12.5px; color: rgba(255,255,255,.82); margin-top: 5px; line-height: 1.4; }

/* header over the red hero (index page only) */
body.over-hero main { margin-top: calc(-1 * var(--head-h)); }
body.over-hero .hero-red { padding-top: calc(var(--head-h) + clamp(54px, 7vw, 96px)); }
body.over-hero .site-header {
  background: transparent; border-bottom-color: rgba(255,255,255,.18);
  backdrop-filter: none;
}
body.over-hero .site-header.is-stuck {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line-2);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 14px rgba(31,45,61,.08);
}
body.over-hero .brand-mark path,
body.over-hero .brand-mark circle,
body.over-hero .brand-mark line { stroke: #fff !important; }
body.over-hero .brand-mark circle[fill] { fill: #fff !important; }
body.over-hero .brand-name { color: #fff; }
body.over-hero .brand-sub { color: rgba(255,255,255,.75); }
body.over-hero .nav-links a { color: rgba(255,255,255,.9); }
body.over-hero .nav-links a:hover,
body.over-hero .nav-links a.active { color: #fff; background: rgba(255,255,255,.14); }
body.over-hero .nav-links a.active::after { background: #fff; }
body.over-hero .lang-btn { color: rgba(255,255,255,.9); }
body.over-hero .lang-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
body.over-hero .burger span { background: #fff; }
body.over-hero .nav-quote { display: none; }
/* once scrolled the header turns white — restore dark text */
body.over-hero .site-header.is-stuck .brand-mark path,
body.over-hero .site-header.is-stuck .brand-mark circle { stroke: var(--brand) !important; }
body.over-hero .site-header.is-stuck .brand-mark circle[fill] { fill: var(--brand) !important; }
body.over-hero .site-header.is-stuck .brand-name { color: var(--brand); }
body.over-hero .site-header.is-stuck .brand-sub { color: var(--muted); }
body.over-hero .site-header.is-stuck .nav-links a { color: var(--ink-2); }
body.over-hero .site-header.is-stuck .nav-links a:hover { color: var(--brand); background: var(--brand-tint); }
body.over-hero .site-header.is-stuck .nav-links a.active { color: var(--brand); }
body.over-hero .site-header.is-stuck .lang-btn { color: var(--ink-2); }
body.over-hero .site-header.is-stuck .burger span { background: var(--ink); }
body.over-hero .site-header.is-stuck .nav-quote { display: inline-flex; }

/* ---------------------------------------------------------------- page banner (inner pages) */
.page-head {
  padding: clamp(34px, 4.6vw, 58px) 0 clamp(26px, 3.4vw, 40px);
  background: linear-gradient(180deg, var(--bg-2), #fff);
  border-bottom: 1px solid var(--line-2);
}
.page-head h1 { font-size: clamp(25px, 3.2vw, 38px); margin-bottom: 12px; }
.page-head p.lead { max-width: 720px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .6; }
.crumbs .cur { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- typography helpers */
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 12px;
}
.lead { color: var(--muted); font-size: 16px; }
.section-head {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 52px);
  align-items: end; margin-bottom: clamp(30px, 4vw, 48px);
}
.section-head h2 { font-size: clamp(23px, 2.7vw, 33px); }
.section-head p.lead { font-size: 15.5px; }

/* ---------------------------------------------------------------- features / cards */
.feature {
  background: #fff; border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 26px 22px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feature:hover { border-color: var(--brand-tint-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.f-ic {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.feature h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* category rows */
.cat-list { display: flex; flex-direction: column; }
.cat {
  display: grid; grid-template-columns: 62px 1fr auto; gap: clamp(14px, 2.4vw, 34px);
  align-items: start; padding: 26px 0; border-top: 1px solid var(--line);
}
.cat:last-child { border-bottom: 1px solid var(--line); }
.cat-idx {
  font-size: 15px; font-weight: 700; color: var(--brand);
  background: var(--brand-tint); border-radius: var(--r-pill);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
}
.cat h3 { font-size: 18px; margin-bottom: 7px; }
.cat p { color: var(--muted); font-size: 14.5px; max-width: 660px; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.tag {
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg-3); color: var(--ink-2); letter-spacing: .01em;
}
.tag.b { background: var(--brand-tint); color: var(--brand-600); }
.cat-act { align-self: center; }

/* checks */
.checks { display: flex; flex-direction: column; gap: 15px; }
.checks li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; }
.ck {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

/* ---------------------------------------------------------------- catalogue */
.cat-toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  padding: 18px 0 26px;
}
.cat-toolbar .search-bar {
  margin: 0; flex: 1 1 340px; max-width: none;
  border: 1px solid var(--line); box-shadow: none; padding: 4px 4px 4px 20px;
}
.cat-toolbar .search-bar input { padding: 10px 0; }
.cat-toolbar .search-go { width: 38px; height: 38px; }
.cat-count { font-size: 13.5px; color: var(--muted); }
.cat-count b { color: var(--brand); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  transition: all .16s ease;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.prod-grid {
  display: grid; gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: repeat(4, minmax(0,1fr));
}
.prod {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.prod:hover { border-color: var(--brand-tint-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.prod-fig {
  position: relative; aspect-ratio: 4 / 3; background: var(--bg-3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border-bottom: 1px solid var(--line-2);
}
.prod-fig .wm {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800; letter-spacing: .1em;
  color: rgba(231,0,10,.07); pointer-events: none;
}
.prod-fig canvas, .prod-fig svg { position: relative; z-index: 1; max-width: 88%; max-height: 88%; }
.prod-fig .prod-formula {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 600; color: var(--muted-2);
  letter-spacing: .02em; text-align: center; padding: 0 14px; line-height: 1.5;
}
.prod-mol { position: relative; z-index: 1; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.prod-mol svg { width: 88%; height: 88%; overflow: visible; }
.prod-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  background: rgba(31,45,61,.82); color: #fff;
  padding: 3px 9px; border-radius: var(--r-pill);
}
.prod-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.prod-name {
  font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink);
  margin-bottom: 11px; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prod-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.prod-meta div { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.45; }
.prod-meta dt { flex: none; width: 56px; color: var(--muted-2); }
.prod-meta dd {
  margin: 0; color: var(--ink-2); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.prod-meta dd.na { color: var(--muted-2); font-weight: 400; font-style: italic; }
.prod-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prod-foot .enq { font-size: 13px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.prod-foot .enq:hover { gap: 10px; }
.prod-foot .enq svg { transition: transform .18s ease; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 66px 20px;
  color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty-state b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 8px; }

.load-more-row { display: flex; justify-content: center; padding-top: 32px; }

/* skeleton */
.sk { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.sk-fig { aspect-ratio: 4/3; background: linear-gradient(90deg, var(--bg-3) 25%, #ECEEF1 37%, var(--bg-3) 63%); background-size: 400% 100%; animation: sh 1.3s ease infinite; }
.sk-line { height: 11px; border-radius: 4px; margin: 13px 16px; background: linear-gradient(90deg, var(--bg-3) 25%, #ECEEF1 37%, var(--bg-3) 63%); background-size: 400% 100%; animation: sh 1.3s ease infinite; }
@keyframes sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------- forms */
.form-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(231,0,10,.10);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--brand); }
.field .msg { display: none; font-size: 12.5px; color: var(--brand); margin-top: 6px; }
.field.err .msg { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 14px; line-height: 1.6; }

.form-alert { display: none; border-radius: var(--r-sm); padding: 14px 16px; font-size: 14px; margin-bottom: 20px; }
.form-alert.show { display: block; }
.form-alert.ok { background: #EAF7F0; color: #12694A; border: 1px solid #BFE6D3; }
.form-alert.bad { background: var(--brand-tint); color: var(--brand-800); border: 1px solid var(--brand-tint-2); }

/* ---------------------------------------------------------------- contact aside */
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item .ic {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--brand-tint); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.info-item .k { font-size: 12.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.info-item .v { font-size: 15px; font-weight: 500; }
.info-item .v a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- cta band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(130deg, #D3111C, #A50F1C 70%, #8C0A15);
  color: #fff; border-radius: var(--r-lg);
  padding: clamp(30px, 4.2vw, 56px);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(20px, 3vw, 44px);
  align-items: center;
}
.cta-band::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.09);
}
.cta-band h2 { font-size: clamp(21px, 2.5vw, 30px); margin-bottom: 10px; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.88); font-size: 15px; position: relative; z-index: 1; }
.cta-band .cta-act { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------------------------------------------------------------- trust strip */
.logo-strip {
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: #fff; padding: 20px 0;
}
.logo-strip .wrap {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 22px; font-size: 13.5px; color: var(--muted);
}
.logo-strip .dotsep { color: var(--brand); font-weight: 700; }

/* certifications */
.cert-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.cert {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 11px 16px; background: #fff;
}
.cert b { font-size: 14px; }
.cert small { display: block; font-size: 11.5px; color: var(--muted-2); }

/* stats block (light) */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line-2); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); }
.stat-grid > div { background: #fff; padding: 24px 20px; }
.stat-grid .n { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: var(--brand); letter-spacing: -.02em; }
.stat-grid .l { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.spec-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); font-weight: 700; background: var(--bg-2); }
.spec-table tbody tr:hover { background: #FCFCFD; }
.spec-table td:first-child { font-weight: 600; }

/* ---------------------------------------------------------------- floating rail (official site motif) */
.rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--line-2);
}
.rail a, .rail button {
  width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); position: relative; border-bottom: 1px solid var(--line-2);
  transition: background .16s ease, color .16s ease;
}
.rail a:last-child, .rail button:last-child { border-bottom: 0; }
.rail a:hover, .rail button:hover { background: var(--brand-tint); color: var(--brand); }
.rail .tip {
  position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: 12px; padding: 5px 10px;
  border-radius: var(--r-sm); white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .16s ease;
}
.rail a:hover .tip, .rail button:hover .tip { opacity: 1; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: #1B2431; color: rgba(255,255,255,.72); padding: clamp(40px, 5vw, 64px) 0 26px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(20px, 3vw, 46px); }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.5); }
.site-footer .brand-mark path, .site-footer .brand-mark circle, .site-footer .brand-mark line { stroke: #fff !important; }
.site-footer .brand-mark circle[fill] { fill: #fff !important; }
.foot-about { font-size: 13.5px; line-height: 1.7; margin-top: 15px; color: rgba(255,255,255,.6); max-width: 380px; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 15px; font-weight: 700; }
.foot-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-cert { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot-cert span { font-size: 11.5px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill); padding: 4px 11px; }
.foot-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

/* ---------------------------------------------------------------- reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.22,.7,.3,1), transform .6s cubic-bezier(.22,.7,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- RTL (Arabic) */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .nav-right { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .nav-links { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .rail { right: auto; left: 18px; }
html[dir="rtl"] .rail .tip { right: auto; left: calc(100% + 8px); }
html[dir="rtl"] .prod-meta dd { text-align: right; }
html[dir="rtl"] .crumbs, html[dir="rtl"] .search-hint, html[dir="rtl"] .logo-strip .wrap { direction: rtl; }
html[dir="rtl"] .btn .arw, html[dir="rtl"] .tlink svg { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .arw { transform: scaleX(-1) translateX(3px); }
html[dir="rtl"] .cta-band .cta-act { justify-content: flex-start; }
html[dir="rtl"] .cat-list .cat { text-align: right; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .g-4, .prod-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: var(--head-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 18px 18px; margin: 0;
    max-height: 0; overflow: hidden; transition: max-height .26s ease, padding .26s ease;
    box-shadow: 0 12px 24px rgba(31,45,61,.08);
  }
  .nav-links.open { max-height: 70vh; overflow-y: auto; }
  .nav-links a { padding: 13px 8px; font-size: 15.5px; }
  .nav-links a.active::after { left: 8px; right: auto; width: 26px; }
  body.over-hero .nav-links a { color: var(--ink-2); }
  body.over-hero .nav-links a:hover, body.over-hero .nav-links a.active { color: var(--brand); background: var(--brand-tint); }
  .burger { display: block; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .g-3, .g-4, .prod-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-act { justify-content: flex-start; }
  .hero-stats-red { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cat { grid-template-columns: 44px 1fr; }
  .cat-act { grid-column: 2; }
  .rail { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { padding: 0 16px; }
  .g-2, .g-3, .g-4, .prod-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .search-bar { padding: 5px 5px 5px 16px; flex-wrap: wrap; }
  .search-struct { width: 100%; justify-content: center; margin-top: 5px; }
  .search-bar { border-radius: var(--r-lg); }
  .hero-red h1 { font-size: 27px; }
  .stat-grid, .hero-stats-red { grid-template-columns: 1fr 1fr; }
}
