/* ============================================================
   E-SHION MACHINERY — global stylesheet (v2 bright B2B theme)
   Design: clean light factory style
   Palette: white + deep blue #1B4FA0 + CTA orange #F26522
   Type: Inter (400–800), no display/mono gimmicks
   ============================================================ */

:root {
  /* palette */
  --blue:      #1B4FA0;
  --blue-2:    #2E6BD6;
  --blue-deep: #14397A;
  --blue-tint: #EAF1FB;
  --blue-soft: #F4F8FD;
  --orange:    #F26522;
  --orange-2:  #FF7D3D;
  --orange-tint: #FEF1EA;
  --ink:       #16233B;
  --text:      #3D4A5E;
  --muted:     #7A8798;
  --faint:     #A6B1C0;
  --bg:        #FFFFFF;
  --bg-soft:   #F5F8FC;
  --line:      #E3E9F2;
  --line-strong: #D2DCEB;
  --white:     #FFFFFF;
  --navy:      #12213C;

  /* kept aliases for legacy classes / inline JS (dropZone) */
  --copper:    var(--orange);
  --copper-2:  var(--orange-2);
  --paper:     var(--bg);
  --paper-2:   var(--bg-soft);
  --steel:     var(--muted);
  --fog:       var(--muted);
  --panel:     var(--white);
  --panel-2:   var(--blue-soft);
  --ink-2:     var(--ink);
  --line-dark: var(--line);
  --line-light: var(--line);
  --film-1:    var(--blue);
  --film-2:    var(--blue-2);
  --film-3:    #7BA7E0;
  --film-4:    #A8C6EF;

  /* type */
  --f-display: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-mono:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* metrics */
  --wrap: 1200px;
  --pad-sec: clamp(3.5rem, 7.5vw, 6rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 16px 40px rgba(27, 79, 160, 0.12);
  --shadow-sm: 0 6px 18px rgba(27, 79, 160, 0.07);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  hyphens: auto;
  -webkit-hyphens: auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.sec-title {
  font-family: var(--f-display);
  font-weight: 800;
  hyphens: none;
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-lead {
  margin-top: 1rem;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.02rem;
}
.sec--dark .sec-lead { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85em 1.55em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
}
.btn .arrow { transition: transform 0.22s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--copper { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 101, 34, 0.28); }
.btn--copper:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(242, 101, 34, 0.34); }
.btn--ghost { border-color: rgba(27, 79, 160, 0.55); color: var(--blue-deep); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--dark { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(27, 79, 160, 0.28); }
.btn--dark:hover { background: var(--blue-2); transform: translateY(-2px); }
.btn--line { border-color: var(--line-strong); color: var(--blue); background: #fff; }
.btn--line:hover { border-color: var(--blue); color: var(--blue-deep); background: var(--blue-soft); }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(22, 35, 59, 0.04);
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 72px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  text-decoration: none;
  color: var(--ink);
}
.logo .logo-name {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.logo .logo-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); align-self: center; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  padding: 0.35em 0;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.head-cta { display: flex; align-items: center; gap: 1.1rem; }
.head-cta .btn { padding: 0.6em 1.15em; font-size: 0.85rem; }

/* language switch */
.lang { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.85em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-btn:hover { border-color: var(--blue); color: var(--blue); }
.lang-btn svg { width: 12px; height: 12px; transition: transform 0.25s; }
.lang[data-open="true"] .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.22s var(--ease);
}
.lang[data-open="true"] .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text);
  background: none;
  border: none;
  padding: 0.55em 0.8em;
  border-radius: 6px;
  cursor: pointer;
}
.lang-menu button:hover { background: var(--blue-soft); color: var(--blue); }
.lang-menu button[disabled] { color: var(--orange); font-weight: 600; cursor: default; }
.lang-menu .lang-soon { display: block; font-size: 0.7rem; color: var(--faint); }

/* mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(27, 79, 160, 0.10), transparent 60%),
    linear-gradient(180deg, #F2F7FE 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-tint);
  border: 1px solid rgba(242, 101, 34, 0.25);
  border-radius: 999px;
  padding: 0.45em 1em;
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub {
  margin-top: 1.2rem;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 2rem; }

/* film stack — spec rows (blue tint bars) */
.film-stack { display: flex; flex-direction: column; gap: 0.7rem; }
.film-stack .fs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 0.85em 1.15em;
  box-shadow: var(--shadow-sm);
  animation: float 5s ease-in-out infinite;
}
.film-stack .fs-row:nth-child(2) { border-left-color: var(--blue-2); animation-delay: 0.5s; margin-left: 12%; }
.film-stack .fs-row:nth-child(3) { border-left-color: var(--film-3); animation-delay: 1s; }
.film-stack .fs-row:nth-child(4) { border-left-color: var(--film-4); animation-delay: 1.5s; margin-left: 8%; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.film-stack .fs-row .fs-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.film-stack .fs-row .fs-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.film-stack .fs-note {
  margin-top: 0.8rem;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* decorative film band */
.film-band {
  display: flex;
  gap: 6px;
  padding: 0 24px 26px;
  max-width: var(--wrap);
  margin-inline: auto;
}
.film-band .fb-layer {
  height: 8px;
  border-radius: 6px;
  flex: 1;
  background: linear-gradient(90deg, var(--blue), var(--blue-2));
  opacity: 0.5;
}
.film-band .fb-layer:nth-child(2) { background: var(--blue-2); opacity: 0.65; }
.film-band .fb-layer:nth-child(3) { background: var(--film-3); opacity: 0.8; }
.film-band .fb-layer:nth-child(4) { background: var(--orange); opacity: 0.9; }

/* ---------- stats strip ---------- */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.stat b {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding: var(--pad-sec) 0; }
.sec--dark {
  background: var(--blue-tint);
  color: var(--ink);
}
.sec--paper2 { background: var(--bg-soft); }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.2rem);
}
.sec-head .sec-title { margin-top: 0.5rem; }
.sec-head .sec-lead { margin-top: 1.1rem; }

/* ---------- machines grid ---------- */
.grid-machines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.m-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 1.6rem;
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), border-color 0.25s, box-shadow 0.28s var(--ease);
}
.m-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--orange));
  opacity: 0.7;
}
.m-card:hover { transform: translateY(-6px); border-color: rgba(27, 79, 160, 0.35); box-shadow: var(--shadow); }
.m-card:hover::before { opacity: 1; }
.m-card .m-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.3rem 1.5rem 0;
}
.m-card .m-index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--blue);
}
.m-card h3 {
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--ink);
  padding: 0 1.5rem;
  margin-top: 0.4rem;
}
.m-card .m-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.7rem;
  padding: 0 1.5rem;
  flex-grow: 1;
}
.m-specs {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1.3rem 1.5rem 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.m-specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  min-width: 0;
}
.m-specs .k { flex-shrink: 1; }
.m-specs .v { flex-shrink: 0; max-width: 62%; }
.m-specs .k {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.m-specs .v {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-align: right;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}
.m-card .m-foot {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.4rem;
  padding: 0 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.m-card .m-foot a { color: var(--blue); text-decoration: none; }
.m-card .m-foot a:hover { text-decoration: underline; }

/* cta filler card in grid */
.m-card.m-card--cta {
  justify-content: center;
  background:
    radial-gradient(320px 220px at 100% 0%, rgba(242, 101, 34, 0.14), transparent 60%),
    var(--bg);
  text-align: left;
  padding: 1.9rem 1.7rem;
}
.m-card--cta h3 { padding: 0; }
.m-card--cta .m-desc { padding: 0; margin-top: 0.8rem; }
.m-card--cta .btn { margin-top: 1.5rem; align-self: flex-start; }

/* machine card photo */
.m-card .m-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.98);
  transition: filter 0.3s ease;
}
.m-card:hover .m-img { filter: saturate(1.08); }

/* layer badge */
.layer-badge { display: inline-flex; align-items: flex-end; gap: 3px; }
.layer-badge i { display: block; width: 5px; border-radius: 2px; background: var(--blue); opacity: 0.85; }
.layer-badge i:nth-child(1) { height: 8px; }
.layer-badge i:nth-child(2) { height: 13px; background: var(--blue-2); }
.layer-badge i:nth-child(3) { height: 18px; background: var(--orange); }

/* ---------- why grid (4 quadrants) ---------- */
.grid-why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.why-cell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.25s;
}
.why-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(27, 79, 160, 0.3); }
.why-cell .w-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-tint);
  border: 1px solid rgba(27, 79, 160, 0.25);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.why-cell .w-ico svg { width: 22px; height: 22px; stroke: var(--blue); }
.why-cell h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}
.why-cell p { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.why-cell .w-sub {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- certs (brand band: deep blue) ---------- */
.sec-certs {
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-2) 100%);
  color: #fff;
}
.cert-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.cert-side .eyebrow { color: #FFC9A8; }
.cert-side .eyebrow::before { background: var(--orange); }
.cert-side .sec-title { color: #fff; }
.cert-side .sec-lead { color: rgba(255, 255, 255, 0.82); }
.ce-stamp {
  margin-top: 2rem;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.cert-list { display: flex; flex-direction: column; gap: 1rem; }
.cert-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 1.1rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  backdrop-filter: blur(2px);
}
.cert-item .c-no {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
}
.cert-item .c-title {
  display: block;
  font-weight: 700;
  color: #fff;
}
.cert-item .c-dir {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0.2rem;
}
.cert-item .c-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: #FFC9A8;
  white-space: nowrap;
}
.cert-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.cert-tags span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}

/* certificate document photo */
.cert-doc {
  margin: 1.8rem 0 0;
  max-width: 300px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(8, 26, 61, 0.35);
}
.cert-doc img { width: 100%; height: auto; }
.cert-doc figcaption {
  padding: 0.55em 0.85em;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 1.5rem;
}
.cta-inner h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  color: var(--ink);
  margin: 0.7rem 0 1rem;
}
.cta-inner p { color: var(--muted); max-width: 50ch; }
.cta-inner .btn { margin-top: 1.6rem; }
.cta-channels { display: flex; flex-direction: column; gap: 0.9rem; }
.cta-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.cta-channel:hover { transform: translateY(-3px); border-color: rgba(27, 79, 160, 0.35); box-shadow: var(--shadow); }
.cc-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-tint);
  border: 1px solid rgba(27, 79, 160, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cc-ico svg { width: 20px; height: 20px; stroke: var(--blue); }
.cta-channel .cc-k { display: block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.cta-channel .cc-v { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); }
.cc-note { margin-left: auto; font-size: 0.7rem; font-weight: 700; color: var(--orange); background: var(--orange-tint); border-radius: 999px; padding: 0.35em 0.8em; white-space: nowrap; }
.cta-time {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--faint);
  text-align: right;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--navy);
  color: #D8E2F2;
  padding: clamp(3.5rem, 7vw, 5rem) 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.foot-about .logo .logo-name { color: #fff; }
.foot-about .logo .logo-sub { color: #8FA4C7; }
.foot-about p { margin-top: 1rem; font-size: 0.9rem; color: #A8BBD6; max-width: 36ch; }
.foot-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.1rem;
}
.foot-col li { margin-bottom: 0.55rem; }
.foot-col a { color: #A8BBD6; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.foot-col a:hover { color: var(--orange-2); }
.foot-col li { font-size: 0.9rem; color: #A8BBD6; }
.foot-langs li { display: flex; gap: 0.6em; align-items: baseline; }
.foot-langs li.en { color: var(--orange-2); font-weight: 700; }
.foot-langs small { font-size: 0.78rem; color: #6F83A5; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.4rem 0;
  font-size: 0.8rem;
  color: #7C90B3;
}
.foot-bottom .legal { display: flex; gap: 1.2rem; }
.foot-bottom .legal a { color: #A8BBD6; text-decoration: none; }
.foot-bottom .legal a:hover { color: var(--orange-2); }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, #F2F7FE 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
}
.page-hero .crumbs { font-size: 0.8rem; font-weight: 600; color: var(--faint); margin-bottom: 1.1rem; }
.page-hero .crumbs a { color: var(--blue); text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 0.6em; opacity: 0.5; }
.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 0.6rem;
}
.page-hero p { color: var(--muted); max-width: 58ch; margin-top: 1rem; }
.page-hero .eyebrow { margin-top: 1.2rem; }

/* ---------- machine blocks (machines page) ---------- */
.machine-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.machine-block:first-of-type { border-top: none; }
.machine-block .mb-index {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--blue);
}
.machine-block h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0.6rem 0 0.9rem;
}
.machine-block .mb-desc { color: var(--muted); max-width: 55ch; }
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.7rem;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.spec-table tr th, .spec-table tr td { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th, .spec-table td { padding: 0.85em 1.1em; text-align: left; }
.spec-table th { background: var(--blue-soft); }
.spec-table tr:hover td { background: var(--blue-soft); }
.spec-table th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  width: 42%;
}
.spec-table td {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.mb-apps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.mb-apps span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid rgba(27, 79, 160, 0.25);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}
/* ---------- process steps (educational blocks) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
  margin-top: 2.2rem;
}
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.25s;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(27, 79, 160, 0.3);
}
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--orange);
  text-transform: uppercase;
}
.step-num::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.step h3 {
  margin-top: 0.65rem;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}
.step p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.68;
  max-width: 62ch;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
.mb-side { position: sticky; top: 92px; }
.mb-quote {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}
.mb-quote h3 {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--blue);
}
.mb-quote p { margin-top: 0.8rem; color: var(--muted); font-size: 0.92rem; }
.mb-quote .btn { margin-top: 1.3rem; }
.mb-quote .mb-mini { margin-top: 1rem; font-size: 0.78rem; }
.mb-quote .mb-mini a { color: var(--blue); }

/* machine block photo */
.mb-photo {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}
.mb-photo img {
  display: block;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.mb-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- service cards ---------- */
.grid-service {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.svc-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.1rem;
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.25s;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(27, 79, 160, 0.3); }
.svc-card .s-no {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--orange);
  flex-shrink: 0;
}
.svc-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.svc-card p { font-size: 0.9rem; color: var(--muted); margin-top: 0.45rem; }
.svc-card .s-meta {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}

/* ---------- solutions rows ---------- */
.sol-list { display: flex; flex-direction: column; gap: 1.2rem; }
.sol-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.4rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s, border-color 0.25s;
}
.sol-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(27, 79, 160, 0.3); }
.sol-row .so-ico {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}
.sol-row h3 { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.sol-row p { font-size: 0.92rem; color: var(--muted); margin-top: 0.45rem; }
.sol-row .so-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.sol-row .so-tags span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid rgba(27, 79, 160, 0.25);
  border-radius: 999px;
  padding: 0.4em 0.9em;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.contact-card > p { font-size: 0.9rem; color: var(--muted); margin: 0.5rem 0 1.2rem; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding: 0.95rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.contact-line:hover { background: var(--blue-soft); }
.cl-ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--blue-tint);
  border: 1px solid rgba(27, 79, 160, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cl-ico svg { width: 20px; height: 20px; stroke: var(--blue); }
.contact-line .cl-k { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.contact-line .cl-v { display: block; font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.contact-line .cl-note { margin-left: auto; font-size: 0.68rem; font-weight: 700; color: var(--blue); }
.address-block {
  margin-top: 1rem;
  padding: 1rem 0.6rem;
  border-top: 1px solid var(--line);
}
.address-block .cl-k { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.address-block p { font-size: 0.92rem; color: var(--text); margin-top: 0.5rem; }

/* form */
.form-wrap h2 { font-size: 1.45rem; font-weight: 800; color: var(--ink); }
.form-lead { color: var(--muted); font-size: 0.95rem; margin: 0.6rem 0 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.field label b { color: var(--orange); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8em 1em;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 160, 0.15);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .err { display: none; font-size: 0.78rem; color: #D64545; }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: #D64545; }
.field.has-err .err { display: block; }
.drop-zone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone:hover { border-color: var(--blue); background: var(--blue-tint); }
.drop-zone span { display: block; font-weight: 600; color: var(--blue); }
.drop-zone small { color: var(--faint); }
.form-note { font-size: 0.78rem; color: var(--faint); margin-top: 1.2rem; }
.form-note a { color: var(--blue); }
.form-status { display: none; margin-top: 1.1rem; font-size: 0.9rem; font-weight: 600; }
.form-status.show { display: block; }
.form-status.err { color: #D64545; }
.form-status.ok { color: #1E8E5A; background: #EAF7F0; border: 1px solid #BFE8D2; border-radius: var(--radius-sm); padding: 0.8em 1em; }

/* ---------- photos ---------- */
.photo-band {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}
.photo-band figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.photo-band img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.photo-band figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.photo-band figcaption span:last-child { color: var(--blue); }
.photo-band--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.photo-band--duo img {
  aspect-ratio: 4 / 3;
}
@media (max-width: 860px) {
  .photo-band--duo { grid-template-columns: 1fr; }
}

/* ---------- product detail ---------- */
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 0.65fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.prod-gallery { min-width: 0; }
.prod-main {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-sm);
}
.prod-main img { width: 100%; height: auto; }
.prod-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.prod-thumbs button {
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  width: 84px;
  aspect-ratio: 1 / 1;
  transition: border-color 0.22s, transform 0.22s var(--ease), box-shadow 0.22s;
}
.prod-thumbs button:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.prod-thumbs button.is-active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 79, 160, 0.2); }
.prod-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prod-side .mb-quote { position: sticky; top: 92px; }
.prod-key {
  list-style: none;
  margin: 1.3rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.prod-key li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7em 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.prod-key li span:first-child { color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; }
.prod-key li span:last-child { color: var(--ink); font-weight: 700; text-align: right; }
.prod-ov {
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 76ch;
  white-space: pre-line;
}
.prod-spec { margin-top: 0; }
.prod-spec th, .prod-spec td { padding: 0.9em 1.1em; vertical-align: top; }
.prod-spec th { width: auto; white-space: nowrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-machines { grid-template-columns: repeat(2, 1fr); }
  .grid-why { grid-template-columns: repeat(2, 1fr); }
  .grid-service { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.4rem 1.4rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s, transform 0.25s var(--ease);
  }
  .nav[data-open="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 0.2rem; }
  .nav-links a { display: block; padding: 0.7em 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .head-cta { padding-top: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .film-stack { max-width: 420px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cert-wrap { grid-template-columns: 1fr; }
  .cert-item { grid-template-columns: 44px 1fr; }
  .cert-item .c-date { grid-column: 2; justify-self: start; }
  .cta-inner { grid-template-columns: 1fr; }
  .machine-block { grid-template-columns: 1fr; }
  .machine-block > * { min-width: 0; }
  .mb-side { position: static; }
  .product-grid { grid-template-columns: 1fr; }
  .prod-side .mb-quote { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .photo-band img { aspect-ratio: 4 / 3; }
  .mb-photo img { max-width: 100%; }
}

@media (max-width: 620px) {
  .sec-title br, .hero h1 br, .page-hero h1 br, .cta-inner h2 br, .mb-quote h3 br { display: none; }

  .grid-machines { grid-template-columns: 1fr; }
  .grid-why { grid-template-columns: 1fr; }
  .grid-service { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat { border-left: none; }
  .sol-row { grid-template-columns: 1fr; }
  .sol-row .so-ico { width: 48px; height: 48px; font-size: 0.9rem; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .film-band { padding: 0 16px 20px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .film-stack .fs-row { animation: none; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5); }
.wa-float .wa-tip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  white-space: nowrap;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45em 0.9em;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.wa-float:hover .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }
@media (max-width: 620px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float .wa-tip { display: none; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; max-width: 820px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: rgba(27, 79, 160, 0.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--blue);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 1.3rem 1.15rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .film-stack .fs-row:nth-child(2), [dir="rtl"] .film-stack .fs-row:nth-child(4) { margin-left: 0; margin-right: 12%; }
[dir="rtl"] .film-stack .fs-row:nth-child(2) { margin-right: 12%; }
[dir="rtl"] .film-stack .fs-row:nth-child(4) { margin-right: 8%; }
[dir="rtl"] .fs-note { text-align: left; }
[dir="rtl"] .btn .arrow { transform: rotate(180deg); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px) rotate(180deg); }
[dir="rtl"] .m-specs .v, [dir="rtl"] .prod-key li span:last-child { text-align: left; }
[dir="rtl"] .mb-apps span, [dir="rtl"] .cert-tags span { letter-spacing: 0; }
[dir="rtl"] .wa-float { right: auto; left: 22px; }
[dir="rtl"] .wa-float .wa-tip { right: auto; left: 70px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .stat, [dir="rtl"] .blog-card, [dir="rtl"] .m-card { text-align: right; }
[dir="rtl"] .crumbs .sep { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .m-foot .arrow, [dir="rtl"] .bc-more { direction: ltr; display: inline-block; }
[dir="rtl"] .sol-row { grid-template-columns: 1fr 64px; }
[dir="rtl"] .sol-row .so-ico { grid-column: 2; grid-row: 1; }
@media (max-width: 620px) {
  [dir="rtl"] .wa-float { left: 16px; }
}

/* language menu links */
.lang-menu .lang-link {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.55em 0.8em;
  border-radius: 6px;
}
.lang-menu .lang-link:hover { background: var(--blue-soft); color: var(--blue); }
.lang-menu .lang-link.is-active { color: var(--orange); font-weight: 700; }
[dir="rtl"] .lang-menu .lang-link { text-align: right; }

/* ============================================================
   MOTION UPGRADES
   ============================================================ */
html { scroll-padding-top: 84px; }

/* card image zoom on hover */
.m-card { will-change: transform; }
.m-card .m-img { transition: filter 0.35s ease, transform 0.6s var(--ease); }
.m-card:hover .m-img { transform: scale(1.06); }
.m-card { overflow: hidden; }
.blog-card img { transition: transform 0.6s var(--ease); }
.blog-card:hover img { transform: scale(1.05); }

/* ================= Blog listing redesign ================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  align-items: stretch;
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), border-color 0.25s, box-shadow 0.28s var(--ease);
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-2), var(--orange));
  opacity: 0.55;
  z-index: 2;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 79, 160, 0.35);
  box-shadow: var(--shadow);
}
.blog-card:hover::before { opacity: 1; }
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.bc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
}
.bc-meta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
}
.blog-card h3 {
  font-size: 1.18rem;
  line-height: 1.32;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.blog-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 1rem;
  flex: 1;
}
.bc-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.9rem;
  margin-top: auto;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card img { aspect-ratio: 16 / 11; }
}
[dir="rtl"] .blog-card { text-align: right; }
[dir="rtl"] .bc-more { direction: ltr; }

/* ================= Blog listing v2 (filters + sidebar) ================= */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.2rem;
  align-items: start;
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.8rem;
}
.blog-filter {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.blog-filter:hover { border-color: var(--blue); color: var(--blue); }
.blog-filter.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.blog-card--featured {
  grid-column: span 2;
}
.blog-card--featured img { aspect-ratio: 21 / 10; }
.blog-card--featured h3 { font-size: 1.45rem; }
.blog-card[hidden] { display: none; }
.blog-side {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.blog-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
}
.blog-panel h3 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.blog-search {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--bg);
}
.blog-search:focus { outline: none; border-color: var(--blue); }
.blog-cats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.blog-cats button {
  appearance: none;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.blog-cats button:hover, .blog-cats button.is-active { color: var(--blue); }
.blog-popular { display: flex; flex-direction: column; gap: 0.7rem; }
.blog-popular a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}
.blog-popular a:hover { color: var(--blue); }
.blog-cta-box {
  background: linear-gradient(150deg, var(--blue-deep), var(--blue));
  color: #fff;
  border: 0;
}
.blog-cta-box h3 { color: #fff; }
.blog-cta-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 1rem;
}
.blog-cta-box .btn { width: 100%; justify-content: center; }
@media (max-width: 1000px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; }
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; }
  .blog-card--featured img { aspect-ratio: 16 / 10; }
}
[dir="rtl"] .blog-cats button { text-align: right; }
.photo-band img { transition: transform 0.8s var(--ease); }
.photo-band figure:hover img { transform: scale(1.02); }
.prod-main img { transition: transform 0.8s var(--ease); }
.prod-main:hover img { transform: scale(1.03); }

/* hero entrance */
.hero-kicker, .hero h1, .hero-sub, .hero-actions, .film-stack .fs-row {
  opacity: 0;
  animation: heroIn 0.7s var(--ease) forwards;
}
.hero-kicker { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.12s; }
.hero-sub { animation-delay: 0.22s; }
.hero-actions { animation-delay: 0.32s; }
.film-stack .fs-row:nth-child(1) { animation-delay: 0.25s; }
.film-stack .fs-row:nth-child(2) { animation-delay: 0.32s; }
.film-stack .fs-row:nth-child(3) { animation-delay: 0.39s; }
.film-stack .fs-row:nth-child(4) { animation-delay: 0.46s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* reveal with soft blur */
.reveal { opacity: 0; transform: translateY(24px); filter: blur(4px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

/* WhatsApp pulse ring */
.wa-float::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.4s var(--ease) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* FAQ answer fade */
.faq-item p { animation: faqIn 0.3s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* button press */
.btn:active { transform: translateY(0) scale(0.98); }

/* stat cards reveal (index) */
.hero-stats .stat { opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.hero-stats.in .stat { opacity: 1; transform: none; }
.hero-stats .stat:nth-child(2) { transition-delay: 0.08s; }
.hero-stats .stat:nth-child(3) { transition-delay: 0.16s; }
.hero-stats .stat:nth-child(4) { transition-delay: 0.24s; }

/* sticky mb-quote subtle lift on hover */
.mb-quote { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.mb-quote:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(27, 79, 160, 0.16); }

@media (prefers-reduced-motion: reduce) {
  .hero-kicker, .hero h1, .hero-sub, .hero-actions, .film-stack .fs-row { opacity: 1; animation: none; }
  .wa-float::after { animation: none; }
}

/* ---------- footer v2 ---------- */
.foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; }
.foot-ce {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFC9A8;
  background: rgba(242, 101, 34, 0.12);
  border: 1px solid rgba(242, 101, 34, 0.35);
  border-radius: 999px;
  padding: 0.4em 0.95em;
}
.foot-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff !important;
  background: #25D366;
  border-radius: 999px;
  padding: 0.5em 1.1em;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.foot-wa:hover { background: #1FBA5A; transform: translateY(-2px); }
.foot-wa svg { width: 17px; height: 17px; fill: #fff; }
.foot-col .foot-reply {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #7C90B3;
}
.foot-langs li a {
  color: #D8E2F2;
  font-weight: 700;
  font-size: 0.85rem;
}
.foot-langs li a:hover { color: var(--orange-2); }
@media (max-width: 1080px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ===== products page: horizontal cards ===== */
.grid-products { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-products .m-card {
  display: grid;
  grid-template-columns: 40% 1fr;
  grid-template-rows: auto auto 1fr auto auto;
  padding: 0;
}
.grid-products .m-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  align-self: start;
  grid-row: 1 / -1;
  grid-column: 1;
  border-bottom: none;
  border-right: 1px solid var(--line);
}
.grid-products .m-top { grid-column: 2; padding-top: 1.4rem; margin-bottom: 0.8rem; }
.grid-products h3 { grid-column: 2; font-size: 1.22rem; }
.grid-products .m-desc {
  grid-column: 2;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.grid-products .m-specs { grid-column: 2; margin: 1.15rem 1.5rem 0; padding-top: 1rem; }
.grid-products .m-foot { grid-column: 2; margin-top: 0; padding: 1.2rem 1.5rem 1.5rem; }
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid-products .m-card {
    display: flex;
    flex-direction: column;
  }
  .grid-products .m-img {
    width: 100%;
    height: auto;
    margin: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
    order: -1;
  }
  .grid-products .m-top { order: 0; padding-top: 1.3rem; }
  .grid-products h3 { order: 1; }
  .grid-products .m-desc { order: 2; display: block; }
  .grid-products .m-specs { order: 3; margin-top: 1.2rem; }
  .grid-products .m-foot { order: 4; padding: 1.2rem 1.5rem 1.5rem; }
}

/* 手机端参数表: 内部横向滚动, 不撑破页面 */
@media (max-width: 860px) {
  .prod-spec, .spec-table {
    display: block;
    width: max-content;
    min-width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .prod-spec th, .prod-spec td, .spec-table th, .spec-table td {
    white-space: nowrap;
  }
  /* 右侧渐隐提示还有更多内容可滑动 */
  .prod-spec, .spec-table {
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 99%);
    mask-image: linear-gradient(to right, #000 88%, transparent 99%);
  }
}

/* company trust assets */
.cert-docs { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.cert-docs .cert-doc { flex: 1 1 280px; margin: 0; }
.cert-docs .cert-doc a { display: block; }
.cert-docs .cert-doc img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: #fff; }
.cert-docs .cert-doc figcaption { margin-top: .5rem; font-size: .78rem; color: #9fb4c2; line-height: 1.5; }
.verify-grid { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.verify-grid figure { flex: 1 1 260px; margin: 0; }
.verify-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(27,79,160,.18); }
.verify-grid figcaption { margin-top: .5rem; font-size: .82rem; color: #5b6b76; line-height: 1.5; }

/* unified certificate grid */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.cert-grid .cert-card { margin: 0; background: #fff; border-radius: 12px; padding: .8rem .8rem .65rem; box-shadow: 0 10px 24px rgba(0,0,0,.18); aspect-ratio: 3 / 4; display: flex; flex-direction: column; }
.cert-grid .cert-card a { display: flex; flex: 1; min-height: 0; }
.cert-grid .cert-card img { width: 100%; flex: 1; min-height: 0; object-fit: contain; border-radius: 6px; }
.cert-grid .cert-card figcaption { text-align: center; font-size: .75rem; color: #1b4fa0; line-height: 1.35; padding-top: .55rem; border-top: 1px solid rgba(27,79,160,.12); margin-top: .55rem; }

/* certifications v2 */
.sec-certs .wrap { max-width: 1180px; }
.sec-certs .cert-head { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.sec-certs .cert-head .eyebrow { justify-content: center; }
.sec-certs .cert-head .sec-title { margin-top: .5rem; }
.sec-certs .cert-head .sec-lead { margin: 1rem auto 0; max-width: 640px; color: #cfe0ea; }
.sec-certs .cert-head .eyebrow { color: #ffc9a8; }
.sec-certs .cert-head .eyebrow::before { background: #ffc9a8; }
.sec-certs .cert-head .sec-title { color: #ffffff; }
.cert-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.4rem; }
.cert-summary-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .45rem; }
.cert-summary-item .c-no { color: #ffc9a8; font-size: .72rem; letter-spacing: .1em; }
.cert-summary-item .c-title { color: #fff; font-weight: 600; font-size: 1rem; }
.cert-summary-item .c-dir { color: #bcd3e0; font-size: .78rem; line-height: 1.55; }
.cert-summary-item .c-date { color: #ffc9a8; font-size: .72rem; margin-top: auto; }
.sec-certs .cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 940px; margin: 0 auto; }
.sec-certs .cert-grid .cert-card { margin: 0; background: #fff; border-radius: 14px; padding: .9rem .9rem .7rem; box-shadow: 0 16px 36px rgba(0,0,0,.24); aspect-ratio: 4 / 5; display: flex; flex-direction: column; }
.sec-certs .cert-grid .cert-card a { display: flex; flex: 1; min-height: 0; }
.sec-certs .cert-grid .cert-card img { width: 100%; flex: 1; min-height: 0; object-fit: contain; border-radius: 8px; }
.sec-certs .cert-grid .cert-card figcaption { text-align: center; font-size: .78rem; font-weight: 600; color: #1b4fa0; line-height: 1.35; padding-top: .6rem; border-top: 1px solid rgba(27,79,160,.12); margin-top: .6rem; }
.cert-verify { margin: 2rem auto 0; max-width: 940px; text-align: center; }
.cert-verify .cv-title { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffc9a8; margin-bottom: .8rem; }
.cert-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.cert-links a { display: inline-flex; align-items: center; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: .5em 1em; text-decoration: none; transition: background .2s, border-color .2s, transform .2s; }
.cert-links a:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); transform: translateY(-1px); }
[dir="rtl"] .cert-links a { letter-spacing: 0; }
@media (max-width: 768px) {
  .cert-summary { grid-template-columns: 1fr; }
  .sec-certs .cert-grid { grid-template-columns: 1fr; max-width: 430px; }
}

/* ================= Case studies ================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: stretch;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), border-color 0.25s, box-shadow 0.28s var(--ease);
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(27, 79, 160, 0.35);
  box-shadow: var(--shadow);
}
.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.cc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.4rem 1.5rem;
}
.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}
.cc-tags span {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(27, 79, 160, 0.08);
  border: 1px solid rgba(27, 79, 160, 0.18);
  border-radius: 999px;
  padding: 0.35em 0.8em;
}
.cc-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--ink); }
.cc-app { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.6; }
.cs-specs {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cs-specs li {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.78rem;
  line-height: 1.45;
}
.cs-specs li span:first-child { color: var(--faint); }
.cs-specs li span { min-width: 0; }
.cs-specs li span:last-child { color: var(--ink); font-weight: 600; text-align: right; }
[dir="rtl"] .cs-specs li span:last-child { text-align: left; }
.cc-more {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.cc-more:hover { text-decoration: underline; }
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 900px;
  margin: 0 auto;
}
.chips span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(27, 79, 160, 0.07);
  border: 1px solid rgba(27, 79, 160, 0.16);
  border-radius: 999px;
  padding: 0.55em 1.1em;
}
@media (max-width: 1024px) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ================= Product category nav ================= */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem 1.4rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cat-prevnext {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  font-size: 0.86rem;
  color: #cfe0ea;
}
.cat-prevnext a { color: #fff; font-weight: 600; text-decoration: none; }
.cat-prevnext a:hover { text-decoration: underline; }
.cat-pn-label { color: #ffc9a8; font-weight: 700; }
.cat-pn-sep { opacity: 0.45; }
.cat-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cat-links .btn--line { margin: 0; }

/* ---------- mobile overflow fixes ---------- */
@media (max-width: 768px) {
  html, body { overflow-x: clip; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); }
  .cta-inner > *, .cta-channels, .cta-channel { min-width: 0; }
  .cta-channel { flex-wrap: wrap; }
  .cta-channel .cc-v, .cta-channel span, .cta-time { overflow-wrap: anywhere; }
  .spec-table.prod-spec, .spec-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .foot-bottom .legal { flex-wrap: wrap; row-gap: .4rem; }
}

/* ================= Quote modal ================= */
.qm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 20, 30, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0.22s;
}
.qm-backdrop.open { opacity: 1; visibility: visible; }
.qm-dialog {
  width: min(640px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(8, 20, 30, 0.4);
  transform: translateY(14px);
  transition: transform 0.25s var(--ease);
}
.qm-backdrop.open .qm-dialog { transform: none; }
.qm-head {
  position: relative;
  padding: 1.35rem 2.7rem 1.15rem 1.6rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 100%);
  color: #fff;
  border-radius: 18px 18px 0 0;
}
.qm-head .qm-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc9a8;
  font-weight: 700;
}
.qm-head h3 { margin: 0.35rem 0 0; font-size: 1.22rem; color: #fff; }
.qm-head p { margin: 0.45rem 0 0; font-size: 0.85rem; color: #dce9f0; }
.qm-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.qm-close:hover { background: rgba(255, 255, 255, 0.24); }
[dir="rtl"] .qm-close { right: auto; left: 1rem; }
.qm-body { padding: 1.4rem 1.6rem 1.7rem; }
.qm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qm-field { display: flex; flex-direction: column; gap: 0.4rem; }
.qm-field--full { grid-column: 1 / -1; }
.qm-field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.qm-field label b { color: var(--orange); }
.qm-field input,
.qm-field select,
.qm-field textarea {
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72em 0.9em;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.qm-field input:focus,
.qm-field select:focus,
.qm-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 160, 0.14);
}
.qm-field textarea { min-height: 108px; resize: vertical; }
.qm-field.has-err input,
.qm-field.has-err select,
.qm-field.has-err textarea { border-color: #D64545; }
.qm-err { display: none; font-size: 0.76rem; color: #D64545; }
.qm-field.has-err .qm-err { display: block; }
.qm-note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--faint); }
.qm-hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.qm-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.3rem;
}
.qm-btn {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.8em 1.7em;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 101, 34, 0.28);
  transition: transform 0.2s, background 0.2s;
}
.qm-btn:hover { background: var(--orange-2); transform: translateY(-1px); }
.qm-btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.qm-status { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.qm-status.err { color: #D64545; }
.qm-file {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--faint);
}
.qm-file input { max-width: 240px; }
.qm-success { display: none; text-align: center; padding: 1.2rem 0.6rem 1.6rem; }
.qm-success.show { display: block; }
.qm-success .qm-ok {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: #EAF7F0;
  border: 1px solid #BFE8D2;
  display: grid;
  place-items: center;
  color: #1E8E5A;
}
.qm-success h4 { font-size: 1.15rem; color: var(--ink); }
.qm-success p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 560px) {
  .qm-form { grid-template-columns: 1fr; }
  .qm-dialog { border-radius: 14px; }
  .qm-head { border-radius: 14px 14px 0 0; }
}
