/* ============================================================
   MetrixSlide – Global Stylesheet
   B2B server-rail manufacturer. Clean, professional, blue.
   Primary brand blue : #12304A
   Bright blue (CTA)  : #1e6dd8
   Sky accent         : #5B9CF0
   ============================================================ */

:root {
  --brand-900: #0b1e2f;
  --brand-800: #12304A;   /* primary */
  --brand-700: #1959B3;
  --brand-600: #1e6dd8;   /* CTA / links */
  --brand-500: #4A8BE3;
  --accent-400: #5B9CF0;  /* sky */
  --accent-50:  #eaf2fc;  /* very light blue surface */
  --ink-900: #0f172a;
  --ink-700: #1f2937;
  --ink-500: #475569;
  --ink-400: #64748b;
  --ink-300: #94a3b8;
  --line-200: #e2e8f0;
  --line-100: #eef2f7;
  --bg-0: #ffffff;
  --bg-1: #f7f9fc;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --radius: 8px;
  --container: 1200px;

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

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-700);
  background: var(--bg-0);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-800); text-decoration: underline; }

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

h1, h2, h3, h4 { color: var(--ink-900); margin: 0 0 .6em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.4rem; letter-spacing: -.01em; }
h2 { font-size: 1.85rem; letter-spacing: -.005em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--brand-900);
  color: #cfdcf3;
  font-size: .82rem;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 36px;
}
.topbar a { color: #cfdcf3; }
.topbar a:hover { color: #fff; text-decoration: none; }
.topbar .topbar-right { display: flex; gap: 18px; }
.topbar .sep { color: rgba(255, 255, 255, .25); margin: 0 4px; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line-200);
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink-900);
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-icon { display: none; height: 36px; width: auto; }
.brand-tag {
  font-size: .72rem;
  color: var(--ink-400);
  letter-spacing: .14em;
  text-transform: uppercase;
}
@media (max-width: 380px) {
  .site-header .brand-logo { display: none; }
  .site-header .brand-icon { display: block; }
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 10px 14px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { color: var(--brand-700); background: var(--accent-50); text-decoration: none; }
.nav a.active { color: var(--brand-800); }
.nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--brand-700);
}
.btn-quote {
  margin-left: 14px;
  background: var(--brand-700);
  color: #fff !important;
  padding: 10px 18px !important;
  border-radius: 6px;
}
.btn-quote:hover { background: var(--brand-800); text-decoration: none; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-200);
  padding: 8px 10px; border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--ink-700); margin: 4px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
  font-size: .95rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); color: #fff; }
.btn-outline { background: #fff; color: var(--brand-700); border-color: var(--brand-700); }
.btn-outline:hover { background: var(--accent-50); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(18, 48, 74, .92), rgba(6, 35, 84, .92)),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, .35), transparent 60%);
  background-color: var(--brand-900);
  color: #fff;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero h1 { color: #fff; font-size: 3rem; line-height: 1.15; }
.hero .lead { color: #cfdcf3; font-size: 1.15rem; max-width: 560px; margin-bottom: 30px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 24px; color: #b9cce8; font-size: .9rem; }
.hero-badges .b { display: flex; align-items: center; gap: 8px; }
.hero-badges .b svg { color: var(--accent-400); }

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { color: #fff; }
.hero-card .stat { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.hero-card .stat strong { font-size: 2rem; color: #fff; }
.hero-card .stat span { color: #b9cce8; font-size: .9rem; }
.hero-card ul { padding-left: 20px; margin: 16px 0 0; color: #dbe6f7; }
.hero-card ul li { margin-bottom: 6px; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-1); }
.section-blue { background: var(--accent-50); }

.section-head { text-align: center; max-width: 740px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ---------- Advantages grid ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.adv-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  padding: 28px 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.adv-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md);
}
.adv-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--accent-50);
  color: var(--brand-700);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.adv-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.adv-card p { color: var(--ink-500); font-size: .92rem; margin: 0; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  padding: 28px 24px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: block;
  color: inherit;
}
.cat-card:hover {
  border-color: var(--brand-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}
.cat-card .icon-wrap {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.cat-card h4 { margin-bottom: 6px; color: var(--ink-900); }
.cat-card p  { color: var(--ink-500); font-size: .92rem; min-height: 44px; }
.cat-card .more { color: var(--brand-700); font-weight: 600; font-size: .9rem; }
.cat-card .more svg { transition: transform .15s; }
.cat-card:hover .more svg { transform: translateX(4px); }

/* ---------- Product grid ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.prod-card {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.prod-card:hover {
  border-color: var(--brand-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}
.prod-thumb {
  background: #ffffff;
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
}
.prod-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.prod-thumb .placeholder {
  color: var(--brand-700);
  opacity: .65;
}
.prod-card .body { padding: 16px 20px 18px; flex: 1; display: flex; flex-direction: column; }
.prod-card .cat { font-size: .78rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: 6px; }
.prod-card h4 { color: var(--ink-900); font-size: 1.05rem; line-height: 1.35; margin: 2px 0 12px; }
.prod-card .summary { color: var(--ink-500); font-size: .92rem; flex: 1; margin-bottom: 14px; }
.prod-card .specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.prod-card .specs span {
  background: var(--accent-50); color: var(--brand-800);
  padding: 3px 8px; border-radius: 4px; font-size: .75rem; font-weight: 600;
}
.prod-card .meta { display: flex; justify-content: space-between; align-items: center; color: var(--ink-400); font-size: .85rem; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-200); }
.prod-card .meta strong { color: var(--brand-700); }

/* ---------- Trust band ---------- */
.trust-band {
  background: var(--brand-800);
  color: #fff;
  padding: 36px 0;
}
.trust-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.trust-band strong { font-size: 2.2rem; color: #fff; display: block; line-height: 1.1; }
.trust-band span  { color: #b9cce8; font-size: .92rem; }

/* ---------- Quote CTA band ---------- */
.cta-band {
  background:
    linear-gradient(120deg, var(--brand-800) 0%, var(--brand-600) 100%);
  color: #fff;
  padding: 56px 0;
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0; max-width: 720px; }
.cta-band p { color: #d8e6fa; margin: 6px 0 0; }

/* ---------- Blog / Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  background: #fff; border: 1px solid var(--line-200);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.post-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand-600); transform: translateY(-3px); text-decoration: none; }
.post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--brand-700), var(--accent-400));
  position: relative;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card .meta { color: var(--ink-400); font-size: .82rem; margin-bottom: 8px; }
.post-card h4 { color: var(--ink-900); margin-bottom: 8px; line-height: 1.35; }
.post-card .excerpt { color: var(--ink-500); font-size: .94rem; flex: 1; }
.post-card .more { margin-top: 14px; color: var(--brand-700); font-weight: 600; font-size: .9rem; }

/* ---------- Page header ---------- */
.page-header {
  background: linear-gradient(120deg, var(--brand-900), var(--brand-700));
  color: #fff;
  padding: 60px 0;
}
.page-header h1 { color: #fff; margin: 0 0 8px; }
.page-header p { color: #cfdcf3; margin: 0; max-width: 720px; }
.breadcrumbs { font-size: .85rem; color: #b9cce8; margin-bottom: 14px; }
.breadcrumbs a { color: #cfdcf3; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { margin: 0 8px; opacity: .6; }

/* ---------- Sidebar layout (products list / sitepage) ---------- */
.layout-with-aside {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}
.aside {
  background: #fff;
  border: 1px solid var(--line-200);
  border-radius: 10px;
  padding: 22px 20px;
  position: sticky; top: 100px;
  align-self: start;
}
.aside h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 12px;
}
.aside-body > ul { list-style: none; padding: 0; margin: 0 0 8px; }
.aside-body > ul li { margin: 0; }
.aside-body > ul li + li { margin-top: 4px; }
.aside-body > ul a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-radius: 8px;
  color: var(--ink-700); font-weight: 500; font-size: .94rem; line-height: 1.4;
}
.aside-body > ul a:hover { background: var(--accent-50); color: var(--brand-700); text-decoration: none; }
.aside-body > ul a.active { background: var(--brand-700); color: #fff; }
.aside-body > ul a.active:hover { background: var(--brand-700); color: #fff; }
.aside .badge { background: var(--accent-50); color: var(--brand-700); font-size: .75rem; padding: 2px 9px; border-radius: 999px; font-weight: 600; flex-shrink: 0; margin-left: 10px; }
.aside-body > ul a.active .badge { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Product filters ---------- */
.filter-panel {
  margin: 26px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-200);
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.filter-head h4 { margin: 0; }
.filter-clear {
  font-size: .78rem;
  font-weight: 600;
  color: var(--brand-600);
  text-decoration: none;
  white-space: nowrap;
}
.filter-clear:hover { text-decoration: underline; }
.filter-group {
  border-bottom: 1px solid var(--line-200);
  padding: 0;
}
.filter-group:last-child { border-bottom: none; }
.filter-group summary {
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-700);
  line-height: 1.45;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px;
  user-select: none;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after {
  content: "▸";
  flex-shrink: 0;
  font-size: .72rem;
  color: var(--ink-400);
  transition: transform .15s ease;
}
.filter-group[open] summary::after { transform: rotate(90deg); }
.filter-group ul {
  list-style: none;
  padding: 0 0 14px 2px;
  margin: 0;
}
.filter-group li { margin: 0; }
.filter-group li + li { margin-top: 6px; }
.filter-group a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-600);
  text-decoration: none;
}
.filter-group a:hover { background: var(--accent-50); color: var(--brand-700); }
.filter-group a.active { background: var(--brand-700); color: #fff; font-weight: 600; }
.contact-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.aside-toggle { display: none; }  /* desktop: panel always shown */
.aside .filter-panel + h4 { margin-top: 16px; }
.aside .callout-blue { margin-top: 6px; font-size: .92rem; line-height: 1.55; }
.keyword-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.keyword-tags span {
  font-size: .78rem; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
}
.results-note { color: var(--ink-500); margin: 0 0 18px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; }
.product-detail .gallery {
  background: linear-gradient(135deg, #eef4fc, #dbe7f8);
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  overflow: hidden;
}
.product-detail .gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .meta { color: var(--ink-400); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.product-detail h1 { font-size: 2.1rem; margin-bottom: 10px; }
.product-detail .summary { color: var(--ink-500); font-size: 1.05rem; margin-bottom: 18px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 16px 0 28px; }
.spec-table th, .spec-table td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line-200);
  font-size: .94rem;
}
.spec-table th { background: var(--bg-1); color: var(--ink-500); font-weight: 600; width: 38%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

/* Product detail content lists (Ideal For, Applications, Advantages, etc.) */
.product-lists > div { background: #fff; border: 1px solid var(--line-200); border-radius: 14px; padding: 24px 26px; }
.product-lists h2 { font-size: 1.15rem; margin: 0 0 16px; }
.product-lists ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.product-lists li { position: relative; padding-left: 28px; color: var(--ink-700); line-height: 1.5; }
.product-lists li:before { content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--brand-600); font-weight: 800; }
.product-lists .prose { max-width: none; }
.product-lists .prose h2 { margin-top: 0; }

.callout-blue {
  background: var(--accent-50);
  border-left: 4px solid var(--brand-600);
  padding: 16px 18px; border-radius: 6px;
  color: var(--ink-700);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row { display: flex; flex-direction: column; }
.form-row.full { grid-column: 1 / -1; }
.form-row label {
  font-size: .85rem; color: var(--ink-500); margin-bottom: 6px; font-weight: 600;
}
.form-input {
  border: 1px solid var(--line-200);
  background: #fff;
  border-radius: 6px;
  padding: 11px 14px;
  font: inherit;
  color: var(--ink-700);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(30, 109, 216, .15);
}
.form-error { color: #b91c1c; font-size: .82rem; margin-top: 4px; }
.form-help  { color: var(--ink-400); font-size: .82rem; }

/* ---------- About timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line-200); }
.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand-600); box-shadow: 0 0 0 4px var(--accent-50);
}
.timeline-item .y { font-weight: 700; color: var(--brand-700); margin-right: 8px; }

/* ---------- Sitepage body content ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* Markdown-rendered blog body (django-markdownx) */
.post-body { overflow-wrap: anywhere; }
.post-body h2 { margin-top: 1.7em; }
.post-body h3 { margin-top: 1.3em; }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0; }
/* Cover image: always show the WHOLE image (contain in a framed box, never crop). */
.post-cover { display: block; width: 100%; max-height: 460px; object-fit: contain; object-position: center;
  background: #f4f7fb; border: 1px solid var(--line-200); border-radius: 12px; margin-bottom: 24px; }
@media (max-width: 600px) { .post-cover { max-height: 300px; } }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line-200); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body thead th { background: #12304A; color: #fff; }
.post-body tbody tr:nth-child(even) { background: #f6f9fd; }
.post-body pre { background: #0f2447; color: #e6eefc; padding: 16px 18px; border-radius: 10px; overflow-x: auto; }
.post-body code { background: #eef3fb; padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.post-body pre code { background: none; padding: 0; }
.post-body blockquote { border-left: 4px solid var(--brand-600); margin: 18px 0; padding: 4px 18px; color: var(--ink-500); background: #f6f9fd; }
@media (max-width: 680px) {
  .post-body table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Blog detail: sticky table-of-contents sidebar */
.blog-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 52px; align-items: start; }
.post-article { max-width: none; margin: 0; }
/* Offset anchored headings below the sticky site header */
.post-body h2, .post-body h3 { scroll-margin-top: 110px; }

.blog-toc { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 130px); overflow-y: auto; }
.blog-toc .toc-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-400); font-weight: 700; margin: 0 0 12px; }
/* TOC built from python-markdown md.toc: <div class="toc"><ul>…nested…</ul></div> */
.blog-toc .toc, .blog-toc .toc ul { list-style: none; margin: 0; padding: 0; }
.blog-toc .toc > ul { border-left: 2px solid var(--line-200); }
.blog-toc .toc a { display: block; color: var(--ink-500); text-decoration: none; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; font-size: .9rem; transition: color .15s, border-color .15s; }
.blog-toc .toc a:hover { color: var(--brand-600); }
.blog-toc .toc ul ul a { padding-left: 28px; font-size: .83rem; }
.blog-toc .toc a.active { color: var(--brand-600); border-left-color: var(--brand-600); font-weight: 600; }

@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; gap: 0; }
  .blog-toc { display: none; }  /* sticky sidebar is a desktop enhancement */
}

/* Blog end-of-article inquiry form */
.blog-inquiry-band { padding-top: 8px; }
.blog-inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  background: linear-gradient(160deg, #12304A, #0b1e2f); color: #fff; border-radius: 18px; padding: 40px; }
.blog-inquiry-intro .eyebrow { color: var(--accent-400); }
.blog-inquiry-intro h2 { color: #fff; margin: 6px 0 12px; }
.blog-inquiry-intro p { color: #cfdcf3; margin: 0 0 16px; line-height: 1.6; }
.blog-inquiry-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.blog-inquiry-points li { position: relative; padding-left: 26px; color: #dbe6f7; font-size: .92rem; line-height: 1.45; }
.blog-inquiry-points li:before { content: "\2713"; position: absolute; left: 0; color: var(--accent-400); font-weight: 800; }
.blog-inquiry-form .binq-row { display: flex; gap: 12px; margin-bottom: 12px; }
.blog-inquiry-form .binq-row .form-input { flex: 1; min-width: 0; }
.blog-inquiry-form textarea.form-input { width: 100%; margin-bottom: 14px; }
.blog-inquiry-form .binq-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 6px; padding: 8px 12px; font-size: .88rem; margin: 0 0 12px; }
.blog-inquiry-form .binq-note { font-size: .8rem; color: #9fb6da; margin: 10px 0 0; text-align: center; }
.blog-inquiry-success { text-align: center; color: #fff; align-self: center; }
.blog-inquiry-success h3 { color: #fff; margin: 0 0 6px; }
.blog-inquiry-success-msg { color: #cfdcf3; margin: 0; }
@media (max-width: 820px) {
  .blog-inquiry { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
}
@media (max-width: 520px) {
  .blog-inquiry-form .binq-row { flex-direction: column; gap: 12px; }
}

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span {
  padding: 8px 12px; border: 1px solid var(--line-200);
  border-radius: 6px; color: var(--ink-700); font-size: .9rem;
}
.pagination a:hover { border-color: var(--brand-600); color: var(--brand-700); text-decoration: none; }
.pagination .current { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }

/* ---------- Alerts ---------- */
.alerts { margin: 16px 0; }
.alert {
  padding: 12px 14px; border-radius: 6px; margin-bottom: 10px;
  font-size: .95rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: var(--accent-50); color: var(--brand-800); border: 1px solid #bfd9f5; }

/* ---------- Footer ---------- */
.site-footer {
  background: #061a3d;
  color: #b9cce8;
  padding: 60px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.site-footer h5 {
  color: #fff;
  font-size: .9rem; letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.site-footer a { color: #b9cce8; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; font-size: .9rem; }
.footer-brand .brand-logo { height: 36px; }
.footer-brand .brand-tag { color: #8da7c7; margin-top: 8px; }
.footer-brand p { color: #b9cce8; font-size: .9rem; margin: 14px 0; max-width: 320px; }
.footer-contact { font-size: .9rem; }
.footer-contact div { margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem; color: #8da7c7; gap: 10px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { padding: 60px 0; }
  .hero .container { grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: 2.2rem; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-with-aside { grid-template-columns: 1fr; }
  .aside { position: static; }
  /* Mobile: collapse the whole filter/category panel behind a toggle so
     products are visible immediately. */
  .aside-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; gap: 10px; cursor: pointer;
    background: #fff; border: 1px solid var(--line-200); border-radius: 8px;
    padding: 12px 16px; margin-bottom: 16px;
    font-weight: 700; color: var(--ink-900); font-size: .95rem;
  }
  .aside-toggle-icon { transition: transform .2s; color: var(--brand-600); }
  .aside-toggle[aria-expanded="true"] .aside-toggle-icon { transform: rotate(180deg); }
  .aside-body { display: none; }
  .aside-body.open { display: block; }
  .product-detail { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-band .container { grid-template-columns: repeat(2, 1fr); }
  .topbar { display: none; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line-200);
    padding: 10px 24px 18px;
    box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 12px 8px; }
  .nav.open .btn-quote { margin: 8px 0 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .adv-grid, .cat-grid, .prod-grid, .post-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-band .container { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

/* ===================== 2026 homepage redesign ===================== */
/* Hero copy additions */
.hero-sub { color: #9fc1f0; font-size: 1.15rem; font-weight: 600; margin: 0 0 18px; max-width: 600px; }
.hero .lead { margin-bottom: 28px; }

/* Image placeholders (used until real photos are uploaded) */
.img-ph {
  display: grid; place-items: center;
  background: linear-gradient(135deg, #14305f, #0f2447);
  color: #5f86c4; border-radius: 10px; min-height: 120px;
  border: 1px solid rgba(255,255,255,.08);
}
.section .img-ph, .section-alt .img-ph { background: linear-gradient(135deg,#eef4fc,#dbe7f8); color: var(--brand-600); border-color: var(--line-200); }

/* Hero right card: media + 6 stat grid */
.hero-card .hero-media { width: 100%; min-height: 210px; margin-bottom: 18px; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.hero-stat { display: flex; gap: 10px; align-items: flex-start; color: #cfdcf3; }
.hero-stat svg { color: var(--accent-400); flex-shrink: 0; margin-top: 3px; }
.hero-stat strong { display: block; color: #fff; font-size: 1.35rem; line-height: 1.1; }
.hero-stat span { font-size: .8rem; color: #9fb6da; }

/* Section 2 — feature row (4 columns) */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.feature-col .icon-wrap { width: 52px; height: 52px; border-radius: 12px; background: var(--accent-50); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 14px; }
.feature-col h4 { margin: 0 0 8px; color: var(--ink-900); }
.feature-col p { margin: 0; color: var(--ink-500); font-size: .94rem; }

/* Section 3 — deployment cards (horizontal scroller, core categories first) */
.deploy-grid { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line-200) transparent; -webkit-overflow-scrolling: touch; }
.deploy-grid::-webkit-scrollbar { height: 8px; }
.deploy-grid::-webkit-scrollbar-thumb { background: var(--line-200); border-radius: 4px; }
.deploy-grid::-webkit-scrollbar-track { background: transparent; }
.deploy-card { flex: 0 0 240px; scroll-snap-align: start; position: relative; background: #fff; border: 1px solid var(--line-200); border-radius: 12px; padding: 16px 16px 20px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s, box-shadow .2s; }
.deploy-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.deploy-thumb { width: 100%; aspect-ratio: 4 / 3; min-height: 0; margin-bottom: 14px; border-radius: 10px; overflow: hidden; background: #f4f7fb; border: 1px solid var(--line-200); }
.deploy-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deploy-card h4 { margin: 0 0 8px; color: var(--ink-900); font-size: .98rem; line-height: 1.3; }
.deploy-card p { margin: 0 0 14px; color: var(--ink-500); font-size: .86rem; flex: 1; }
.deploy-card .more { color: var(--brand-600); font-weight: 700; font-size: .85rem; }
.hot-tag { position: absolute; top: 12px; left: 12px; background: #e8442a; color: #fff; font-size: .64rem; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 4px; z-index: 1; }
/* Left/right scroll buttons for the deployment scroller */
.deploy-scroller-wrap { position: relative; }
.deploy-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-200); background: #fff; color: var(--brand-600); cursor: pointer; box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s; }
.deploy-nav:hover { background: var(--brand-600); color: #fff; }
.deploy-nav svg { display: block; }
.deploy-prev { left: -12px; }
.deploy-prev svg { transform: rotate(180deg); }
.deploy-next { right: -12px; }
.deploy-nav[hidden] { display: none; }
@media (max-width: 700px) { .deploy-nav { display: none; } }

/* Section 4 — manufacturing band (dark) */
.mfg-band { background: linear-gradient(160deg, #12304A, #0b1e2f); color: #fff; padding: 72px 0 0; }
.section-head-light h2 { color: #fff; }
.section-head-light .eyebrow { color: var(--accent-400); }
.section-head-light p { color: #b9cce8; }
.mfg-main { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; margin-bottom: 56px; }
.mfg-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px 20px; }
.mfg-stat { display: flex; gap: 12px; align-items: flex-start; }
.mfg-stat svg { color: var(--accent-400); flex-shrink: 0; margin-top: 3px; }
.mfg-stat strong { display: block; color: #fff; font-size: 1.5rem; line-height: 1.1; }
.mfg-stat span { font-size: .82rem; color: #9fb6da; }
.mfg-gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 132px; gap: 12px; }
.mfg-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.about-feature { margin: 0; background: #fff; border: 1px solid var(--line-200); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.about-feature img { width: 100%; height: 360px; object-fit: cover; display: block; }
.about-feature figcaption { padding: 22px 26px 26px; }
.about-feature h3 { margin: 0 0 8px; color: var(--ink-900); font-size: 1.2rem; }
.about-feature p { margin: 0; color: var(--ink-500); line-height: 1.6; }
@media (max-width: 820px) { .about-features { grid-template-columns: 1fr; gap: 24px; } .about-feature img { height: 300px; } }
@media (max-width: 560px) { .about-feature img { height: 220px; } .about-feature figcaption { padding: 18px 20px 22px; } }
.mfg-trust { border-top: 1px solid rgba(255,255,255,.14); margin-top: 0; }
.mfg-trust .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.mfg-trust div { display: flex; align-items: center; justify-content: center; gap: 10px; color: #dbe6f7; font-weight: 600; font-size: .95rem; }
.mfg-trust svg { color: var(--accent-400); }

/* Section 6 — why-choose: 6 key metrics in two rows (3 across) */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { background: #fff; border: 1px solid var(--line-200); border-radius: 14px; padding: 30px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.why-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-card .icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-50); color: var(--brand-600); display: grid; place-items: center; margin: 0 auto 16px; }
.why-metric { font-size: 2.3rem; font-weight: 800; color: var(--brand-600); line-height: 1.05; letter-spacing: -.01em; }
.why-label { margin-top: 8px; color: var(--ink-500); font-size: .95rem; font-weight: 600; }

/* Section 6b — latest blog titles (4 across) */
.blog-latest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.blog-latest-card { background: #fff; border: 1px solid var(--line-200); border-radius: 12px; padding: 24px 22px; display: flex; flex-direction: column; min-height: 168px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.blog-latest-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.blog-latest-eyebrow { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-600); font-weight: 800; }
.blog-latest-card h4 { margin: 10px 0 14px; color: var(--ink-900); font-size: 1.02rem; line-height: 1.35; flex: 1; }
.blog-latest-card .more { color: var(--brand-600); font-weight: 700; font-size: .85rem; }
@media (max-width: 980px) { .blog-latest { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-latest { grid-template-columns: 1fr; } }

/* Section 7 — bottom app CTA (dark) */
.app-cta { background: linear-gradient(160deg, #12304A, #0b1e2f); color: #fff; padding: 64px 0; }
.app-cta .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.app-cta h2 { color: #fff; margin: 0 0 10px; }
.app-cta > .container > .app-cta-text > p { color: #cfdcf3; margin: 0 0 22px; font-size: 1.05rem; }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.app-list li { display: flex; align-items: center; gap: 10px; color: #dbe6f7; font-weight: 600; }
.app-list svg { color: var(--accent-400); flex-shrink: 0; }

.prod-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- responsive (new homepage components) ---- */
@media (max-width: 860px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .feature-row { grid-template-columns: repeat(2, 1fr); }
  .prod-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .mfg-main { grid-template-columns: 1fr; gap: 32px; }
  .mfg-stats { grid-template-columns: 1fr 1fr; }
  .app-cta .container { grid-template-columns: 1fr; gap: 28px; }
  .hero-card .hero-media { min-height: 150px; }
}
@media (max-width: 600px) {
  .feature-row, .prod-grid-4 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .mfg-stats { grid-template-columns: 1fr 1fr; }
  .mfg-trust .container { grid-template-columns: 1fr 1fr; }
  .app-list { grid-template-columns: 1fr; }
  .mfg-band { padding-top: 48px; }
}


/* ── Homepage: capabilities / credentials / factory strip (2026-09) ── */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap-card { background: #fff; border: 1px solid var(--line-200); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.cap-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.cap-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.cap-body { padding: 22px 24px 24px; }
.cap-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); }
.cap-body h3 { margin: 8px 0 8px; font-size: 1.15rem; line-height: 1.3; color: var(--ink-900); }
.cap-body p { margin: 0 0 12px; color: var(--ink-500); font-size: .94rem; line-height: 1.6; }
.cap-body ul { list-style: none; margin: 0; padding: 0; }
.cap-body li { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--ink-700, #334155); line-height: 1.5; margin: 6px 0; }
.cap-body li svg { color: var(--brand-600); flex-shrink: 0; margin-top: 3px; }
.cred-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cred-card { background: #fff; border: 1px solid var(--line-200); border-radius: 14px; padding: 24px 22px; }
.cred-card .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--brand-600); display: grid; place-items: center; margin-bottom: 12px; }
.cred-kind { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.cred-card h3 { margin: 6px 0 8px; font-size: 1.02rem; line-height: 1.35; color: var(--ink-900); }
.cred-card p { margin: 0; font-size: .9rem; color: var(--ink-500); line-height: 1.55; }
.factory-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 34px; }
.factory-strip figure { margin: 0; }
.factory-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.factory-strip figcaption { font-size: .78rem; color: var(--ink-500); margin-top: 6px; line-height: 1.4; }
.factory-strip-note { text-align: center; color: var(--ink-500); font-size: .9rem; margin: 18px 0 0; }
.factory-strip-note a { color: var(--brand-600); font-weight: 600; }
@media (max-width: 1024px) { .cap-grid { grid-template-columns: 1fr; } .cred-grid { grid-template-columns: repeat(2, 1fr); } .factory-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cred-grid { grid-template-columns: 1fr; } .factory-strip { grid-template-columns: repeat(2, 1fr); } }


/* ── Cooperation process: 8 steps in two rows (home + product detail) ── */
.process-sec { background: linear-gradient(180deg, #f5f8fd, #fff); }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.process-step { position: relative; background: #fff; border: 1px solid var(--line-200); border-radius: 14px; padding: 26px 22px 22px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.process-step:hover { border-color: var(--brand-600); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.process-step::after { content: ""; position: absolute; right: -18px; top: 50%; width: 18px; height: 2px; background: var(--line-200); }
.process-step:nth-child(4n)::after, .process-step:last-child::after { display: none; }
.process-num { position: absolute; top: 14px; right: 16px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--brand-600); background: var(--accent-50); border-radius: 999px; padding: 3px 9px; }
.process-step svg { color: var(--brand-600); display: block; margin-bottom: 12px; }
.process-step h3 { margin: 0 0 6px; font-size: 1.02rem; line-height: 1.35; color: var(--ink-900); }
.process-step p { margin: 0; font-size: .9rem; color: var(--ink-500); line-height: 1.55; }
.process-cta { text-align: center; margin-top: 30px; }
@media (max-width: 1024px) { .process-grid { grid-template-columns: repeat(2, 1fr); } .process-step:nth-child(2n)::after { display: none; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } .process-step::after { display: none; } }

/* ---------- About: logo story ---------- */
.logo-story { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 48px; align-items: center; }
.logo-story__art { background: #fff; border: 1px solid var(--line-200); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 40px 32px; display: grid; gap: 28px; justify-items: center; }
.logo-story__art img { width: 100%; max-width: 300px; height: auto; display: block; }
.logo-story__dark { background: #12304A; border-radius: 12px; padding: 22px 28px; width: 100%; display: grid; place-items: center; }
.logo-story__dark img { max-width: 240px; }
.logo-story h2 { margin-top: 8px; }
.logo-story ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.logo-story li { position: relative; padding-left: 30px; line-height: 1.6; color: var(--ink-700); }
.logo-story li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 4px; background: var(--sw, #12304A); }
.logo-story li.sw-blue { --sw: #1E6DD8; }
.logo-story li.sw-navy { --sw: #12304A; }
.logo-story li.sw-split { --sw: linear-gradient(135deg, #12304A 50%, #1E6DD8 50%); }
.logo-story li.sw-split::before { background: var(--sw); }
.logo-story__colors { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.logo-story__colors span { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.logo-story__colors i { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-200); display: inline-block; }
@media (max-width: 820px) { .logo-story { grid-template-columns: 1fr; gap: 28px; } .logo-story__art { padding: 28px 22px; } }

/* ---------- Home: cases + industries ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-200); border-radius: 14px; overflow: hidden; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.case-card:hover { border-color: var(--brand-600); box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.case-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.case-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.case-card__eyebrow { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600); }
.case-card h4 { margin: 0; font-size: 1.05rem; line-height: 1.35; color: var(--ink-900); }
.case-card p { margin: 0; color: var(--ink-500); font-size: .92rem; }
.case-card .more { color: var(--brand-600); font-weight: 600; font-size: .9rem; margin-top: auto; }
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.industry-card { background: #fff; border: 1px solid var(--line-200); border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.industry-card .icon-wrap { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-50); color: var(--brand-600); display: grid; place-items: center; }
.industry-card strong { color: var(--ink-900); font-size: .98rem; line-height: 1.3; }
.industry-card span { color: var(--ink-500); font-size: .88rem; line-height: 1.45; }
.topbar-engineer { font-weight: 600; }
@media (max-width: 980px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industry-grid, .case-grid { grid-template-columns: 1fr; } }

/* ---------- Product: trust bar, CAD row, video ---------- */
.trust-bar { list-style: none; padding: 0; margin: 14px 0 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.trust-bar li { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--brand-800); background: var(--accent-50); border-radius: 999px; padding: 6px 12px; }
.trust-bar svg { color: var(--brand-600); }
.cad-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.cad-row .btn { gap: 8px; }
.cad-row__link { font-size: .9rem; font-weight: 600; }
.video-frame { position: relative; padding-top: 56.25%; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Downloads / selector ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card { background: #fff; border: 1px solid var(--line-200); border-radius: 14px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.dl-card .icon-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--brand-600); display: grid; place-items: center; }
.dl-card h3 { margin: 4px 0 0; font-size: 1.1rem; }
.dl-card p { margin: 0 0 8px; color: var(--ink-500); font-size: .93rem; flex: 1; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-200); border-radius: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th { text-align: left; background: var(--bg-1); color: var(--ink-700); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line-200); white-space: nowrap; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-100); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: 0; }
.sel-filters { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-bottom: 18px; }
.sel-filters label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink-500); }
.sel-filters select, .sel-filters input { min-width: 160px; padding: 9px 12px; border: 1px solid var(--line-200); border-radius: 8px; font: inherit; }
@media (max-width: 820px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- Home: compatible with ---------- */
.compat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.compat-pill { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 200px; padding: 16px 22px; border: 1px solid var(--line-200); border-radius: 12px; background: #fff; color: var(--ink-900); font-weight: 700; transition: border-color .2s, box-shadow .2s; }
.compat-pill span { font-size: .8rem; font-weight: 500; color: var(--brand-600); }
.compat-pill:hover { border-color: var(--brand-600); box-shadow: var(--shadow-md); text-decoration: none; }
.compat-pill--custom { background: var(--accent-50); }
.compat-note { text-align: center; color: var(--ink-400); font-size: .8rem; margin: 18px 0 0; }

/* ---------- Product summary photos ---------- */
.summary-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.summary-photos figure { margin: 0; border: 1px solid var(--line-200); border-radius: 12px; overflow: hidden; background: #fff; }
.summary-photos img { width: 100%; height: 260px; object-fit: cover; display: block; }
.summary-photos figcaption { padding: 10px 14px; font-size: .85rem; color: var(--ink-500); line-height: 1.4; }
@media (max-width: 640px) { .summary-photos { grid-template-columns: 1fr; } .summary-photos img { height: 200px; } }

/* ---------- Blog tags on the post header ---------- */
.post-tags--hero { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.post-tags--hero a { font-size: .78rem; font-weight: 600; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 4px 12px; }
.post-tags--hero a:hover { background: #fff; color: var(--brand-800); text-decoration: none; }

/* ---------- Website chat widget ---------- */
.mchat { position: fixed; right: 20px; bottom: 20px; z-index: 9000; font-family: var(--font-sans); }
.mchat__btn { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--brand-800); color: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 10px 28px rgba(18,48,74,.35); transition: transform .15s, background .15s; }
.mchat__btn:hover { background: var(--brand-600); transform: translateY(-2px); }
.mchat__panel { position: absolute; right: 0; bottom: 64px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 110px); background: #fff; border: 1px solid var(--line-200); border-radius: 16px; box-shadow: 0 20px 50px rgba(15,23,42,.22); display: flex; flex-direction: column; overflow: hidden; }
.mchat__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--brand-800); color: #fff; }
.mchat__head img.mchat__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.7); }
.mchat__head div { display: flex; flex-direction: column; line-height: 1.2; flex: 1; }
.mchat__head strong { font-size: .95rem; }
.mchat__head span { font-size: .74rem; color: #b9cce8; }
.mchat__close { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
.mchat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-1); }
.mchat__msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.mchat__msg--assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line-200); color: var(--ink-700); border-bottom-left-radius: 4px; }
.mchat__msg--user { align-self: flex-end; background: var(--brand-600); color: #fff; border-bottom-right-radius: 4px; }
.mchat__typing { color: var(--ink-400); }
.mchat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line-200); background: #fff; }
.mchat__form textarea { flex: 1; resize: none; border: 1px solid var(--line-200); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .92rem; min-height: 40px; max-height: 96px; }
.mchat__form button { width: 42px; border: 0; border-radius: 10px; background: var(--brand-600); color: #fff; cursor: pointer; display: grid; place-items: center; }
.mchat__foot { margin: 0; padding: 6px 12px 10px; font-size: .75rem; color: var(--ink-400); background: #fff; text-align: center; }
@media (max-width: 480px) { .mchat { right: 12px; bottom: 12px; } .mchat__btn-label { display: none; } .mchat__btn { padding: 12px; } .mchat__panel { bottom: 60px; height: min(520px, calc(100vh - 90px)); } }
@media print { .mchat { display: none; } }
.mchat__panel[hidden] { display: none; }

/* ---------- Home hero: factory photo background ---------- */
.hero--factory { padding: 84px 0 0; background: var(--brand-900); overflow: visible; }
.hero--factory::after { display: none; }
.hero--factory .hero__bg { position: absolute; inset: 0; border-radius: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; z-index: 0; filter: saturate(.8) contrast(1.05); }
.hero--factory::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(11,30,47,.95) 0%, rgba(18,48,74,.86) 40%, rgba(18,48,74,.5) 68%, rgba(11,30,47,.3) 100%); }
.hero--factory .container { position: relative; z-index: 2; }
.hero .container.hero__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fc1f0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.hero__eyebrow svg { color: var(--accent-400); }
.hero__proof { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #dbe6f7; font-size: .9rem; font-weight: 600; }
.hero__proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { color: var(--accent-400); }
.hero-card--product { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.hero__strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; padding-bottom: 0; transform: translateY(40px); }
.hero__shot { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 14px 34px rgba(11,30,47,.35); background: #0b1e2f; }
.hero__shot img { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform .3s; }
.hero__shot:hover img { transform: scale(1.04); }
.hero__shot span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .82rem; font-weight: 700; color: #fff; background: linear-gradient(transparent, rgba(11,30,47,.85)); }
.hero--factory + .section { padding-top: 96px; }
@media (max-width: 980px) { .hero .container.hero__strip { grid-template-columns: repeat(2, 1fr); } .hero__shot img { height: 130px; } }
@media (max-width: 600px) { .hero--factory { padding-top: 56px; } .hero .container.hero__strip { grid-template-columns: repeat(2, 1fr); gap: 10px; transform: translateY(28px); } .hero__shot img { height: 100px; } .hero--factory + .section { padding-top: 72px; } }

/* ---------- Home hero: phone layout ---------- */
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .hero--factory { padding-top: 40px; }
  .hero--factory .hero__bg { object-position: 60% 50%; }
  .hero--factory .container { gap: 22px; }
  .hero__eyebrow { font-size: .68rem; letter-spacing: .1em; padding: 5px 11px; margin-bottom: 14px; }
  .hero--factory h1 { font-size: 1.85rem; line-height: 1.18; margin: 0 0 12px; }
  .hero--factory .hero-sub { font-size: .98rem; margin-bottom: 18px; }
  .hero--factory .cta-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
  .hero__copy, .hero-card--product { min-width: 0; max-width: 100%; }
  .hero--factory .cta-row { min-width: 0; }
  .hero--factory .cta-row .btn { width: 100%; min-width: 0; justify-content: center; padding: 12px 8px; font-size: .88rem; text-align: center; }
  .hero__proof li { min-width: 0; }
  .hero__proof { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 10px; margin-top: 18px; font-size: .8rem; }
  .hero-card--product { padding: 14px; }
  .hero-card .hero-media { min-height: 0; margin-bottom: 12px; }
  .hero-stats { gap: 10px 12px; }
  .hero-stat strong { font-size: 1.1rem; }
  .hero-stat span { font-size: .72rem; line-height: 1.25; display: block; }
  .hero .container.hero__strip { margin-top: 26px; gap: 8px; transform: translateY(24px); }
  .hero__shot img { height: 92px; }
  .hero__shot span { font-size: .74rem; padding: 16px 8px 7px; }
  .hero--factory + .section { padding-top: 60px; }
}

/* ---------- Blog on phones: wide tables scroll inside the article instead of stretching the page ---------- */
.blog-layout, .post-article, .post-body { min-width: 0; }
.post-body { overflow-x: hidden; }
.post-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body img, .post-body iframe, .post-body .video-frame { max-width: 100%; }
@media (max-width: 600px) { .post-body table { font-size: .85rem; } .post-body pre { overflow-x: auto; } }

/* Home — buyer FAQ */
.home-faq { max-width: 860px; margin: 0 auto; background: var(--bg-0); border: 1px solid var(--line-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.home-faq-item { border-bottom: 1px solid var(--line-200); }
.home-faq-item:last-child { border-bottom: 0; }
.home-faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 24px; font-weight: 600; color: var(--ink-900); }
.home-faq-item summary::-webkit-details-marker { display: none; }
.home-faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--brand-600); }
.home-faq-item[open] summary::after { content: "\2212"; }
.home-faq-item summary:hover { color: var(--brand-600); }
.home-faq-item p { margin: 0; padding: 0 24px 20px; color: var(--ink-500); line-height: 1.7; }
.home-faq-more { text-align: center; margin: 28px 0 0; color: var(--ink-500); }
.home-faq-more a { color: var(--brand-600); font-weight: 600; }
@media (max-width: 640px) {
  .home-faq-item summary { padding: 16px 48px 16px 16px; }
  .home-faq-item summary::after { right: 16px; }
  .home-faq-item p { padding: 0 16px 16px; }
}

/* Home — chapter strips (Products / Factory) and in-section compatibility block */
.home-chapter { background: var(--bg-0); border-top: 1px solid var(--line-200); border-bottom: 1px solid var(--line-200); scroll-margin-top: 80px; }
.home-chapter .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.home-chapter__title { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: var(--brand-800); padding-left: 14px; border-left: 4px solid var(--brand-600); }
.home-chapter__text p { margin: 8px 0 0; color: var(--ink-500); }
.home-chapter__nav { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.home-chapter__nav a { padding: 8px 16px; border: 1px solid var(--line-200); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink-700); background: var(--bg-1); white-space: nowrap; }
.home-chapter__nav a:hover { border-color: var(--brand-600); color: var(--brand-600); }
#core-products, #custom, #process, #factory-intro, #advantages, #certifications, #insights, #faq { scroll-margin-top: 80px; }
.compat-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line-200); text-align: center; }
.compat-block h3 { margin-bottom: 8px; }
.compat-block > p { color: var(--ink-500); max-width: 740px; margin: 0 auto 20px; }
@media (max-width: 768px) {
  .home-chapter .container { flex-direction: column; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
  .home-chapter__title { font-size: 1.4rem; }
}
/* the hero photo strip overhangs the hero bottom; clear it for the first chapter strip */
.hero--factory + .home-chapter .container { padding-top: 84px; }
@media (max-width: 768px) { .hero--factory + .home-chapter .container { padding-top: 56px; } }

/* Home — rail type pills above the best-seller grid */
.type-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: -16px 0 36px; }
.type-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-200); border-radius: 999px; background: var(--bg-0); font-size: .92rem; font-weight: 600; color: var(--ink-700); }
.type-pill svg { color: var(--brand-600); }
.type-pill:hover { border-color: var(--brand-600); color: var(--brand-600); }
.type-pill--hot { border-color: var(--brand-600); background: var(--accent-50); color: var(--brand-700); }

/* Home — compact layout: type pills under the product grid, one-line compatibility strip, collapsed capability cards */
.type-row { margin: 32px 0 0; align-items: center; }
.type-row__label { font-size: .85rem; font-weight: 700; color: var(--ink-400); margin-right: 4px; }
.compat-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; margin-top: 32px; padding-top: 24px; }
.compat-block__label { font-size: .9rem; font-weight: 600; color: var(--ink-700); margin-right: 4px; }
.compat-block .compat-pill { flex-direction: row; align-items: baseline; gap: 6px; min-width: 0; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.compat-block .compat-pill span { font-size: .78rem; }
.compat-block .compat-pill:hover { box-shadow: none; }
.compat-block .compat-note { flex-basis: 100%; margin: 6px 0 0; font-size: .75rem; }
.cap-grid { align-items: start; }
.cap-card img { height: 150px; }
.cap-body h3 { margin-bottom: 10px; }
.cap-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--brand-600); }
.cap-more summary::-webkit-details-marker { display: none; }
.cap-more summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.cap-more[open] summary::after { content: "\2212"; }
.cap-more__close, .cap-more[open] .cap-more__open { display: none; }
.cap-more[open] .cap-more__close { display: inline; }
.cap-more[open] summary { margin-bottom: 12px; }

/* Home — tighter top spacing where a section follows one that already ends with 80px */
#custom { padding-top: 0; }
#process + .process-sec { padding-top: 40px; }
#insights { padding-top: 48px; }

/* Language switcher (topbar on desktop, footer on every width) */
.lang-switch { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; }
.lang-switch a { opacity: .75; }
.lang-switch a:hover, .lang-switch a.active { opacity: 1; text-decoration: none; }
.lang-switch a.active { font-weight: 700; color: #fff; }

/* Phones: grid tracks may shrink below their content, and long words (German compounds) wrap
   instead of pushing the page wider than the screen. */
.why-grid, .mfg-stats, .mfg-gallery, .hero-stats { min-width: 0; }
.why-card, .mfg-stat, .mfg-stat > div, .hero-stat > div, .spec-line .v { min-width: 0; }
.why-metric, .why-label, .mfg-stat strong, .mfg-stat span, .hero-stat strong, .hero-stat span, .spec-line .v {
  overflow-wrap: anywhere; hyphens: auto;
}
@media (max-width: 760px) {
  .why-grid, .mfg-stats, .mfg-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid { gap: 12px; }
  .why-card { padding: 22px 12px; }
  .why-metric { font-size: 1.25rem; line-height: 1.25; }
  .mfg-stat strong { font-size: 1.25rem; }
  .mfg-stats { gap: 18px 14px; }
}
@media (max-width: 760px) {
  .mfg-trust .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfg-trust .container > div { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
}

/* Language switcher inside the mobile menu (the top bar is hidden on phones) */
.nav-lang { display: none; }
@media (max-width: 980px) {
  .nav.open .nav-lang { display: block; margin-top: 12px; padding: 12px 8px 4px; border-top: 1px solid var(--line-200); }
  .nav.open .nav-lang .lang-switch { gap: 4px 18px; }
  .nav.open .nav-lang a { padding: 6px 0; background: none; color: var(--ink-500); font-weight: 600; opacity: 1; }
  .nav.open .nav-lang a.active { color: var(--brand-600); }
  .nav.open .nav-lang a.active::after { display: none; }
}

/* Load test block on product pages */
.test-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.test-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.test-photos figure { margin: 0; }
.test-photos figure:first-child { grid-column: 1 / -1; }
.test-photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; }
.test-photos figure:not(:first-child) img { aspect-ratio: 4 / 3; }
.test-photos figcaption { font-size: .8rem; color: var(--ink-500); margin-top: 6px; }
.test-facts .spec-table th { text-align: left; width: 38%; font-weight: 600; }
.test-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 18px; }
@media (max-width: 860px) { .test-grid { grid-template-columns: minmax(0, 1fr); } }
.test-facts .spec-table { width: 100%; table-layout: fixed; }
.test-facts .spec-table th, .test-facts .spec-table td { overflow-wrap: anywhere; }

/* Product page: four key specs + documents row at the top of the buy box */
.hero-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.hero-spec { background: var(--accent-50); border: 1px solid var(--line-200); border-radius: 12px; padding: 12px 16px; min-width: 0; }
.hero-spec dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 2px; }
.hero-spec dd { margin: 0; font-size: 1.3rem; line-height: 1.2; font-weight: 800; color: var(--brand-800); overflow-wrap: anywhere; }
.hero-spec dd.hero-spec__note, .hero-specs-more .hero-spec__note { font-size: .78rem; font-weight: 500; line-height: 1.35; color: var(--ink-500); }
.hero-spec dd.hero-spec__note { margin-top: 4px; }
.hero-specs-more { margin: 0 0 14px; border: 1px solid var(--line-200); border-radius: 12px; padding: 4px 16px; }
.hero-specs-more > div { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-200); }
.hero-specs-more > div:first-child { border-top: 0; }
.hero-specs-more dt { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); align-self: center; }
.hero-specs-more dd { margin: 0; font-weight: 700; color: var(--brand-800); overflow-wrap: anywhere; }
.hero-docs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 18px; padding: 10px 14px; border: 1px dashed var(--line-200); border-radius: 12px; font-size: .9rem; }
.hero-docs__label { font-weight: 700; color: var(--ink-500); text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; margin-right: 4px; }
.hero-docs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.hero-docs a:not(:last-child) { background: #fff; border: 1px solid var(--line-200); border-radius: 999px; padding: 5px 12px; }
@media (max-width: 520px) { .hero-spec dd { font-size: 1.1rem; } .hero-spec { padding: 10px 12px; } .hero-specs-more > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Product details: image + text blocks, alternating sides */
.prod-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line-200); }
.prod-section:nth-of-type(even) .prod-section__img { order: 2; }
.prod-section--text { grid-template-columns: minmax(0, 1fr); }
.prod-section__img { margin: 0; }
.prod-section__img img { width: 100%; height: auto; display: block; border: 1px solid var(--line-200); border-radius: 12px; }
.prod-section__text h3 { margin: 0 0 10px; font-size: 1.3rem; }
.prod-section__text p { margin: 0 0 10px; color: #475569; }
.prod-section__text ul { margin: 6px 0 0; padding-left: 20px; color: #475569; }
@media (max-width: 860px) { .prod-section { grid-template-columns: minmax(0, 1fr); gap: 16px; } .prod-section:nth-of-type(even) .prod-section__img { order: 0; } }
/* Blog cards: every thumbnail is a fixed 16:9 window, whatever the shape of the uploaded image */
.post-thumb { overflow: hidden; }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-thumb .post-pin-badge { z-index: 1; }
.prod-section__img img { max-height: 640px; width: auto; max-width: 100%; margin: 0 auto; }

/* Footer social links */
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); color: #d8e6fa; transition: background .15s, color .15s; }
.footer-social a:hover { background: #0a66c2; color: #fff; }
/* About: team card */
.team-card { background: #fff; border: 1px solid var(--line-200); border-radius: 16px; padding: 32px; max-width: 980px; margin: 0 auto; }
.team-card__head { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.team-card__photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 4px var(--accent-50); }
.team-card__head h3 { margin: 0 0 4px; font-size: 1.4rem; }
.team-card__role { margin: 0 0 10px; color: var(--ink-500); }
.team-card__li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #0a66c2; }
.team-card__body > p { color: #475569; margin: 0 0 14px; }
.team-card__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 18px 0; }
.team-card__cols h4 { font-size: .95rem; margin: 0 0 8px; line-height: 1.4; }
.team-card__cols ul { margin: 0; padding-left: 18px; color: #475569; }
@media (max-width: 820px) { .team-card { padding: 22px; } .team-card__cols { grid-template-columns: minmax(0, 1fr); } .team-card__head { gap: 16px; } .team-card__photo { width: 84px; height: 84px; } }

.footer-social { align-items: center; flex-wrap: wrap; }
.footer-friends { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 8px; margin-left: 18px; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.15); font-size: .9rem; color: #8da7c7; }
.footer-social a.footer-friend { display: inline; width: auto; height: auto; background: none; border-radius: 0; color: #b9cce8; font-size: .9rem; }
.footer-social a.footer-friend:hover { background: none; color: #fff; text-decoration: underline; }

@media (max-width: 520px) { .footer-friends { margin-left: 16px; padding-left: 16px; } }
.footer-social { flex-wrap: nowrap; }
.footer-friends, .footer-social a.footer-friend { font-size: .86rem; }
@media (max-width: 380px) { .footer-social { flex-wrap: wrap; } }
.footer-social { flex-wrap: wrap; row-gap: 8px; }
.footer-friends { margin-left: 14px; padding-left: 14px; }
.footer-friends { margin-left: 12px; padding-left: 12px; gap: 6px; }
.footer-friends, .footer-social a.footer-friend { font-size: .84rem; }

.site-footer li, .site-footer h5 { overflow-wrap: anywhere; hyphens: auto; }
