/* ==========================================================================
   Bingwei - chair manufacturing and export, Shengfang, Hebei
   Hand-authored design system. No CDN, no external fonts, no tracking.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* --- brand palette, sampled from the factory's own product photography --- */
  --brand: #141c26;
  --brand-700: #1d2937;
  --brand-600: #27384a;
  --brand-500: #354a60;
  --brand-050: #eef2f6;
  --accent: #c96a12;
  --accent-600: #ab5a0d;
  --accent-050: #fdf3e8;

  /* --- neutrals --- */
  --ink: #131820;
  --ink-2: #3c4757;
  --ink-3: #64707f;
  --line: #dfe4ea;
  --line-2: #eceff3;
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #eef1f4;
  --dark-paper: #0e141c;

  /* --- semantic --- */
  --ok: #1f7a4d;
  --warn: #9a6b00;
  --wa: #25d366;
  --wa-dark: #128c7e;

  /* --- typography --- */
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;
  --lh-tight: 1.15;
  --lh-snug: 1.32;
  --lh-base: 1.62;

  /* --- spacing --- */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 88px;

  /* --- structure --- */
  --wrap: 1240px;
  --wrap-narrow: 820px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 68px;
  --topbar-h: 34px;
  --shadow-1: 0 1px 2px rgba(19, 24, 32, .06), 0 1px 3px rgba(19, 24, 32, .08);
  --shadow-2: 0 6px 18px rgba(19, 24, 32, .10);
  --shadow-3: 0 18px 48px rgba(19, 24, 32, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .28s;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 var(--s-3); line-height: var(--lh-tight); font-weight: 700; letter-spacing: -.015em; color: var(--brand); }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-4); }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.15rem; }
li { margin-bottom: var(--s-2); }
small { font-size: var(--fs-xs); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-5); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--s-5); }
.section { padding: var(--s-8) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--brand); color: #cfd8e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s-4); top: var(--s-4); z-index: 200; background: #fff; padding: var(--s-3); }

.eyebrow {
  display: inline-block; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--s-3);
}
.section-dark .eyebrow { color: #f0b774; }
.lead { font-size: var(--fs-lg); color: var(--ink-2); line-height: var(--lh-snug); }
.muted { color: var(--ink-3); }
.section-head { max-width: 780px; margin-bottom: var(--s-6); }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 12px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-size: var(--fs-base); font-weight: 600; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-dark { background: var(--brand); color: #fff; }
.btn-dark:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: var(--fs-sm); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------------------------------------------------------------- header */
.topbar {
  background: var(--brand); color: #aebbcb; font-size: var(--fs-xs);
  height: var(--topbar-h); display: flex; align-items: center;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.topbar a { color: #dbe3ec; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: var(--s-5); }

.site-header {
  position: sticky; top: 0; z-index: 90; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.header-inner {
  height: var(--header-h); display: flex; align-items: center;
  justify-content: space-between; gap: var(--s-5); position: relative;
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: var(--s-2); flex: 1 1 auto; justify-content: center; }
.nav > li { list-style: none; margin: 0; position: static; }
.nav { margin: 0; padding: 0; list-style: none; }
.nav > li > a {
  display: flex; align-items: center; gap: 5px; height: var(--header-h); padding: 0 var(--s-3);
  font-size: var(--fs-base); font-weight: 600; color: var(--brand-700); white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav > li > a:hover, .nav > li.open > a { color: var(--accent); border-bottom-color: var(--accent); }
.caret { width: 9px; height: 9px; flex: 0 0 auto; opacity: .65; }
.header-cta { flex: 0 0 auto; }

/* ------------------------------------------------------------ mega menu */
.mega {
  position: absolute; top: var(--header-h); left: 0; right: 0; transform: translateY(6px);
  width: auto; background: var(--paper);
  border: 1px solid var(--line); border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-3); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: var(--s-5); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  max-height: min(78vh, 640px); overflow-y: auto; overscroll-behavior: contain;
}
.nav > li:hover .mega, .nav > li.open .mega, .mega:hover {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.mega-col { min-width: 0; }
.mega-col h4 {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); border-bottom: 1px solid var(--line-2); padding-bottom: var(--s-2);
  margin-bottom: var(--s-3);
}
.mega-list { list-style: none; margin: 0; padding: 0; }
.mega-list li { margin: 0 0 2px; }
.mega-list a {
  display: block; padding: 6px 8px; border-radius: var(--radius); font-size: var(--fs-sm);
  color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mega-list a:hover { background: var(--brand-050); color: var(--brand); }
.mega-list .count { color: var(--ink-3); font-size: var(--fs-xs); }
.mega-feature { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line-2); }
.mega-card { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.mega-card img { aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 6px; }
.mega-card span { display: block; padding: 8px 10px; font-size: var(--fs-xs); color: var(--ink-2); font-weight: 600; line-height: 1.3; }
.mega-card:hover { border-color: var(--accent); }
.mega-card:hover span { color: var(--accent); }

.burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--brand); margin: 4px 0; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--paper); max-height: 70vh; overflow-y: auto; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s-3) 0; }
.mobile-nav a { display: block; padding: 10px var(--s-5); font-weight: 600; color: var(--brand-700); }
.mobile-nav .sub a { padding-left: var(--s-7); font-weight: 400; font-size: var(--fs-sm); color: var(--ink-2); }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; background: var(--brand); overflow: hidden; display: grid; }
.hero-slide {
  grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s var(--ease), visibility .7s;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.35);
  filter: blur(26px) saturate(.75) brightness(.55);
}
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 50%, rgba(201, 106, 18, .20), transparent 60%),
    linear-gradient(100deg, rgba(14, 20, 28, .93) 0%, rgba(14, 20, 28, .82) 46%, rgba(14, 20, 28, .58) 100%);
}
.hero-inner {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: var(--s-7); padding: var(--s-9) 0;
  min-height: 560px;
}
.hero-copy { max-width: 640px; }
.hero-copy h1 { color: #fff; font-size: var(--fs-4xl); margin-bottom: var(--s-4); }
.hero-copy p { color: #d5dde6; font-size: var(--fs-lg); line-height: var(--lh-snug); margin-bottom: var(--s-6); }
.hero-figure { position: relative; display: flex; justify-content: center; }
.hero-figure .hero-card {
  background: #fff; border-radius: var(--radius-lg); padding: var(--s-5);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .35);
  position: relative;
}
.hero-figure .hero-card::after {
  content: attr(data-item); position: absolute; left: var(--s-5); bottom: 10px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; color: var(--ink-3);
}
.hero-figure img { max-height: 380px; width: auto; object-fit: contain; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: var(--s-5); z-index: 3; display: flex; gap: var(--s-2); justify-content: center; }
.hero-dot { width: 34px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .32); border: 0; padding: 0; cursor: pointer; }
.hero-dot.active { background: var(--accent); }
.hero-strip { background: var(--brand-700); color: #b9c6d5; font-size: var(--fs-sm); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding-top: var(--s-4); padding-bottom: var(--s-4); }
.hero-strip b { color: #fff; display: block; font-size: var(--fs-md); }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--brand-500); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-img { background: #fff; border-bottom: 1px solid var(--line-2); }
.card-img img { aspect-ratio: 1 / 1; object-fit: contain; padding: var(--s-4); width: 100%; }
.card-body { padding: var(--s-4); flex: 1 1 auto; display: flex; flex-direction: column; }
.card-body h3 { font-size: var(--fs-md); margin-bottom: 6px; }
.card-body h3 a { color: var(--brand); }
.card-body h3 a:hover { color: var(--accent); }
.card-meta { font-size: var(--fs-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-2); }
.card-body p { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--s-3); }
.card-foot { margin-top: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }

.tile {
  position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--paper);
}
.tile img { aspect-ratio: 4 / 3; object-fit: contain; background: #fff; padding: var(--s-4); }
.tile-body { padding: var(--s-4); border-top: 1px solid var(--line-2); }
.tile-body h3 { font-size: var(--fs-md); margin-bottom: 4px; }
.tile-body p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.tile:hover { border-color: var(--accent); }

.prop { padding: var(--s-5); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.prop h3 { font-size: var(--fs-md); }
.prop p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.prop-num { font-size: var(--fs-xs); font-weight: 700; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: var(--s-2); }

/* ------------------------------------------------------------ breadcrumb */
.crumbs { font-size: var(--fs-xs); color: var(--ink-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: var(--s-2); color: var(--line); }
.crumbs li:last-child::after { content: ""; }

/* ---------------------------------------------------------- page header */
.page-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: var(--s-7) 0; }
.page-head h1 { margin-bottom: var(--s-3); }
.page-head .lead { margin: 0; max-width: 760px; }

/* --------------------------------------------------------- product page */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.gallery-main img { aspect-ratio: 1 / 1; object-fit: contain; padding: var(--s-5); width: 100%; }
.gallery-thumbs { display: flex; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; }
.gallery-thumbs button { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; width: 74px; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { aspect-ratio: 1 / 1; object-fit: contain; padding: 4px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: var(--s-5); }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table th { width: 34%; color: var(--ink-3); font-weight: 600; background: var(--paper-2); }

.benefit-list { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.benefit-list li { display: flex; gap: var(--s-3); margin-bottom: var(--s-3); }
.benefit-list .mark { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-050); position: relative; }
.benefit-list .mark::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--accent); }
.benefit-list b { display: block; color: var(--brand); }
.benefit-list span { font-size: var(--fs-sm); color: var(--ink-2); }

.prob { border-left: 3px solid var(--accent); padding: 0 0 0 var(--s-4); margin-bottom: var(--s-4); }
.prob b { display: block; color: var(--brand); }
.prob span { font-size: var(--fs-sm); color: var(--ink-2); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.chip {
  display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: var(--fs-xs);
  background: var(--brand-050); color: var(--brand-600); border: 1px solid var(--line);
}
a.chip:hover { background: var(--accent-050); border-color: var(--accent); color: var(--accent-600); }

/* --------------------------------------------------------------- panels */
.panel { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5); }
.panel-accent { background: var(--accent-050); border-color: #f0d6b5; }
.panel h3 { font-size: var(--fs-md); }
.panel p:last-child { margin-bottom: 0; }

.faq-item { border-bottom: 1px solid var(--line-2); padding: var(--s-4) 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { font-size: var(--fs-md); margin-bottom: var(--s-2); }
.faq-item p { margin: 0; color: var(--ink-2); font-size: var(--fs-base); }

.step { display: flex; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-2); }
.step:last-child { border-bottom: 0; }
.step-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: var(--fs-sm);
}
.step b { display: block; color: var(--brand); }
.step span { font-size: var(--fs-sm); color: var(--ink-2); }

.fact-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.fact-table th, .fact-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.fact-table th { color: var(--ink-3); font-weight: 600; width: 42%; }

.cta-band { background: var(--brand); color: #cfd8e3; padding: var(--s-8) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b7c3d1; max-width: 640px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--dark-paper); color: #93a1b2; font-size: var(--fs-sm); padding: var(--s-8) 0 var(--s-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-6); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--s-4); }
.site-footer a { color: #b3c0cf; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-logo img { height: 40px; width: auto; margin-bottom: var(--s-4); }
.footer-bottom { border-top: 1px solid #1d2733; margin-top: var(--s-6); padding-top: var(--s-4); display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: var(--fs-xs); color: #6d7c8d; }

/* ------------------------------------------------------- sticky contact */
.contact-dock {
  position: fixed; right: 18px; bottom: 22px; z-index: 95;
  display: flex; flex-direction: column; gap: 10px;
}
.dock-btn {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-2); color: #fff; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dock-btn:hover { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow-3); color: #fff; }
.dock-wa { background: var(--wa); }
.dock-mail { background: var(--brand); }
.dock-tel { background: var(--accent); }
.dock-btn svg { width: 26px; height: 26px; fill: currentColor; }

/* ------------------------------------------------------------ utilities */
.stack > * + * { margin-top: var(--s-5); }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--s-6); }
.count-pill { display: inline-block; background: var(--brand-050); color: var(--brand-600); border-radius: 999px; padding: 2px 9px; font-size: var(--fs-xs); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.divider-title { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-7) 0 var(--s-5); }
.divider-title h2 { margin: 0; white-space: nowrap; }
.divider-title::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }

/* ============================== responsive ============================== */
@media (max-width: 1280px) {
  .nav > li > a { padding: 0 10px; font-size: var(--fs-sm); }
}

@media (max-width: 1120px) {
  :root { --fs-4xl: 2.5rem; --fs-3xl: 2rem; }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-feature { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding: var(--s-8) 0 var(--s-9); }
  .hero-figure { display: none; }
  .hero-copy { max-width: 100%; }
  .product-layout { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 860px) {
  :root { --fs-4xl: 2.1rem; --fs-3xl: 1.75rem; --fs-2xl: 1.5rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: var(--s-7) 0; }
  .topbar-links { gap: var(--s-3); }
}

@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
  .topbar .wrap > span:first-child { display: none; }
  .divider-title h2 { white-space: normal; }
  .spec-table th { width: 42%; }
}

@media (max-width: 520px) {
  :root { --fs-4xl: 1.85rem; --header-h: 60px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-strip .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .contact-dock { right: 12px; bottom: 76px; }
  .dock-btn { width: 48px; height: 48px; }
  .logo img { height: 36px; }
}

@media (hover: none) {
  .card:hover, .btn:hover, .dock-btn:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .topbar, .contact-dock, .site-footer, .hero-dots { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}

/* --- language switcher + RTL (added by msbuild.py) --- */
.langsw{position:relative;display:inline-block;margin-inline-start:.75rem;font-size:.875rem}
.langsw__btn{display:inline-flex;align-items:center;gap:.35rem;padding:.4rem .7rem;border:1px solid currentColor;
  border-radius:999px;background:transparent;color:inherit;cursor:pointer;font:inherit;line-height:1}
.langsw__btn::after{content:"";width:.4em;height:.4em;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:rotate(45deg);margin-block-end:.15em}
.langsw__menu{position:absolute;inset-inline-end:0;top:calc(100% + .4rem);z-index:120;min-width:11rem;margin:0;padding:.3rem;
  list-style:none;border-radius:.6rem;background:#fff;box-shadow:0 12px 32px rgba(0,0,0,.18);display:none}
.langsw:hover .langsw__menu,.langsw:focus-within .langsw__menu,
.langsw__btn[aria-expanded="true"]+.langsw__menu{display:block}
.langsw__menu a{display:block;padding:.45rem .7rem;border-radius:.4rem;color:#111;text-decoration:none;white-space:nowrap}
.langsw__menu a:hover,.langsw__menu a:focus-visible{background:rgba(0,0,0,.06)}
.langsw__menu a[aria-current="true"]{font-weight:700}
@media (max-width:768px){.langsw{margin-inline-start:.4rem}.langsw__menu{inset-inline-end:auto;inset-inline-start:0}}
[dir="rtl"] body{text-align:right}
[dir="rtl"] .breadcrumbs,[dir="rtl"] .nav,[dir="rtl"] .hero__actions{flex-direction:row-reverse}
[dir="rtl"] ul,[dir="rtl"] ol{padding-inline-start:1.25rem;padding-inline-end:0}
[dir="rtl"] table{direction:rtl}
:lang(ja),:lang(ko){line-height:1.85;word-break:normal;overflow-wrap:anywhere}
:lang(ar){line-height:2;letter-spacing:0}
:lang(ru),:lang(de){overflow-wrap:break-word;hyphens:auto}

/* cify-nav-bullets-fix-20260924 */
nav ul, .nav ul, .nav-list, .nav-ul, .nav__list, ul.nav {
  list-style: none;
}
.nav-list {
  list-style: none;
  position: relative;
}
nav li, .nav li, .nav-list > li, .nav-ul > li, .nav__list > li, ul.nav > li {
  list-style: none;
}
.nav-list > li {
  list-style: none;
  margin: 0;
}

/* cify-langsw-navrow-fix-20260924 */
header{position:relative;z-index:50}
.nav-row,.header-row,.header__inner{display:flex;align-items:center;gap:16px;flex-wrap:nowrap}
.langsw{position:relative;flex:0 0 auto;margin-inline-start:0}
.langsw__menu{list-style:none;padding-left:0;z-index:200;inset-inline-end:0;inset-inline-start:auto}

/* cify-langsw-flash-fix-20260924 */
.langsw__menu{top:calc(100% + .35rem)!important;z-index:300!important}
.langsw__menu::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:.55rem}
.langsw:hover .langsw__menu,.langsw:focus-within .langsw__menu,.langsw.is-open .langsw__menu,.langsw__btn[aria-expanded="true"]+.langsw__menu{display:block!important}

/* cify-langsw-navrow-extra-20260924 */
.header__row,.header-inner,.header__in,.header__bar,.site-header__in,.head-row,.navrow,.hdr-bar,.hdr-shell,.wrap.hdr,.wrap.head-row,.wrap.header__bar,.wrap.hdr-shell{display:flex;align-items:center;gap:16px;flex-wrap:nowrap}
/* cify-langsw-pretty-20260924 */
.site-header,.site-header .header__inner,.header__inner,.nav-row,.header-row,
.header__row,.header-inner,.header__in,.header__bar,.site-header__in,.head-row,.navrow,
.hdr-bar,.hdr-shell,.wrap.hdr,.wrap.head-row,.wrap.header__bar,.wrap.hdr-shell{overflow:visible!important}
.header__inner,.nav-row,.header-row,.header__row,.header-inner,.header__in,.header__bar,
.site-header__in,.head-row,.navrow,.hdr-bar,.hdr-shell,.wrap.hdr,.wrap.head-row,
.wrap.header__bar,.wrap.hdr-shell{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
}
.header__inner{height:var(--header-h,76px);gap:var(--sp-6,1.5rem)}
.header__inner > .nav,.nav-row > .nav,.header-row > .nav,.header__inner .nav,
.nav-row .nav,.header-row .nav{
  min-width:0;
  flex:1 1 auto;
}
.langsw{
  position:relative;
  flex:0 0 auto!important;
  flex-shrink:0!important;
  margin-inline-start:.5rem;
  z-index:80;
  font-size:.8125rem;
  order:initial;
}
.langsw__btn{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .9rem .45rem .75rem;
  border:1px solid var(--line,#e2e8e5);
  border-radius:999px;
  background:var(--bg-soft,#f6f9f7);
  color:var(--ink,#14201b);
  cursor:pointer;
  font:inherit;
  font-weight:600;
  line-height:1.2;
  box-shadow:var(--sh-1,0 1px 2px rgba(16,32,26,.06));
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease;
  white-space:nowrap;
}
.langsw__btn:hover,
.langsw.is-open .langsw__btn,
.langsw__btn[aria-expanded="true"]{
  background:var(--brand-light,#e8f2ed);
  border-color:var(--brand-mid,#2f7f65);
  color:var(--brand-dark,#14402f);
  box-shadow:var(--sh-2,0 4px 16px rgba(16,32,26,.08));
}
.langsw__btn::after{
  content:"";
  width:.35em;height:.35em;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  margin-block-end:.15em;
  opacity:.7;
  transition:transform .15s ease;
}
.langsw.is-open .langsw__btn::after,
.langsw__btn[aria-expanded="true"]::after{
  transform:rotate(225deg);
  margin-block-end:-.1em;
}
.langsw__menu{
  position:absolute;
  inset-inline-end:0!important;
  inset-inline-start:auto!important;
  top:100%!important;
  z-index:300!important;
  min-width:12rem;
  margin:0;
  padding:.4rem;
  list-style:none!important;
  padding-left:.4rem!important;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line,#e2e8e5);
  box-shadow:0 16px 40px rgba(16,32,26,.16);
  display:none;
}
.langsw__menu::before{
  content:"";
  position:absolute;
  left:0;right:0;
  bottom:100%;
  height:.55rem;
}
.langsw:hover .langsw__menu,
.langsw:focus-within .langsw__menu,
.langsw.is-open .langsw__menu,
.langsw__btn[aria-expanded="true"]+.langsw__menu{display:block!important}
.langsw__menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.55rem .75rem;
  border-radius:8px;
  color:var(--ink,#14201b);
  text-decoration:none;
  white-space:nowrap;
  font-weight:500;
  transition:background .12s ease,color .12s ease;
}
.langsw__menu a:hover,
.langsw__menu a:focus-visible{
  background:var(--brand-light,#e8f2ed);
  color:var(--brand-dark,#14402f);
}
.langsw__menu a[aria-current="true"]{
  font-weight:700;
  background:var(--brand-light,#e8f2ed);
  color:var(--brand,#1f5f4b);
}
.langsw__menu a[aria-current="true"]::after{
  content:"✓";
  font-size:.85em;
  color:var(--brand,#1f5f4b);
}
@media (max-width:768px){
  .langsw{margin-inline-start:.25rem}
  .langsw__menu{inset-inline-end:0!important;inset-inline-start:auto!important;min-width:11rem}
}
[dir="rtl"] .langsw__menu{inset-inline-end:0!important;inset-inline-start:auto!important}
