/* ============================================================
   Yijia Inflatable — public site stylesheet
   Design language: industrial editorial
   Ink / paper / safety orange. Sharp edges. Big type.
   ============================================================ */

:root {
  --ink: #081420;
  --ink-2: #0d1f2e;
  --ink-3: #16293a;
  --ink-soft: #1d3143;
  --paper: #f4f5f2;
  --paper-2: #eceee8;
  --white: #ffffff;
  --accent: #ff5a1f;
  --accent-dark: #de4510;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --muted: #5f6b78;
  --muted-light: #9aa6b2;
  --line: rgba(8, 20, 32, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);
  --maxw: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --font-display: "Sora", "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-lg: 0 40px 80px -32px rgba(8, 20, 32, 0.42);
  --shadow-sm: 0 10px 30px -18px rgba(8, 20, 32, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #050e17; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; }

::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --------------------------- top bar ---------------------------- */
.topbar {
  background: #050e17;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 24px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.topbar a { color: rgba(255, 255, 255, 0.72); transition: color 0.2s; }
.topbar a:hover { color: #fff; }

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar-item svg { width: 13px; height: 13px; opacity: 0.7; }

.topbar-right { display: flex; align-items: center; gap: 18px; }

/* ------------------------ language switcher --------------------- */
.lang {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
}

.lang-btn svg { width: 13px; height: 13px; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 520px;
  max-height: 60vh;
  overflow: auto;
  background: #0b1a27;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  z-index: 120;
}

.lang.open .lang-menu { display: grid; }

.lang-menu a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
}

.lang-menu a span:last-child {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.lang-menu a:hover, .lang-menu a.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang-menu a.active { box-shadow: inset 2px 0 0 var(--accent); }

/* ---------------------------- header ---------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 20, 32, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: background 0.3s;
}

.site-header.is-scrolled { background: rgba(5, 14, 23, 0.98); box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.8); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 30px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.04em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.mobile-langs, .mobile-cta { display: none; }

.nav-link {
  position: relative;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active { color: #fff; }

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  flex: 0 0 auto;
}

.header-actions .btn { flex: 0 0 auto; }

.header-phone svg { width: 15px; height: 15px; color: var(--accent); }

/* mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s, opacity 0.2s;
}

.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------- mega menu -------------------------- */
.has-mega { position: static; }

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #0a1825;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  z-index: 110;
}

.has-mega:hover .mega, .mega:hover { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-inner {
  display: grid;
  grid-template-columns: 1.2fr 2.4fr;
  gap: 48px;
  padding: 40px 0 44px;
}

.mega-intro h4 { font-size: 20px; margin-bottom: 10px; }
.mega-intro p { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); max-width: 260px; }

.mega-intro .link-arrow { margin-top: 18px; }

.mega-cols {
  columns: 3;
  column-gap: 34px;
}

.mega-col {
  break-inside: avoid;
  margin-bottom: 24px;
}

.mega-col h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
  font-weight: 600;
}

.mega-col a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  padding: 3.5px 0;
  transition: color 0.15s, padding-left 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mega-col a:hover { color: #fff; padding-left: 5px; }

/* ----------------------------- buttons -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.22s;
  border-radius: 0;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }

.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 11.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ------------------------------ hero ---------------------------- */
.hero {
  position: relative;
  min-height: min(86vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.03);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.09); }
  to { transform: scale(1.0); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(4, 12, 20, 0.94) 0%, rgba(4, 12, 20, 0.78) 38%, rgba(4, 12, 20, 0.25) 72%, rgba(4, 12, 20, 0.55) 100%),
    linear-gradient(to top, rgba(4, 12, 20, 0.9) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(64px, 10vh, 120px);
  padding-bottom: clamp(100px, 13vh, 150px);
  width: 100%;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 26px;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.95rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 17ch;
  text-wrap: balance;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(0.98rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-side {
  position: absolute;
  right: var(--pad);
  bottom: 140px;
  z-index: 2;
  text-align: right;
  display: none;
}

.hero-side .num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.hero-side .lbl {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* scroll hint */
.scroll-hint {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  writing-mode: vertical-rl;
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: hintPulse 2.4s infinite;
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --------------------------- stat band -------------------------- */
.stat-band {
  position: relative;
  z-index: 5;
  margin-top: -70px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 34px 28px 30px;
  border-right: 1px solid var(--line);
  position: relative;
}

.stat:last-child { border-right: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-value sup { font-size: 0.45em; color: var(--accent); top: -0.5em; }

.stat-label {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------- sections -------------------------- */
.section { padding: clamp(64px, 8vw, 116px) 0; }
.section-tight { padding: clamp(48px, 5vw, 72px) 0; }

.section-dark { background: var(--ink); color: #fff; }
.section-paper { background: var(--paper); }
.section-white { background: #fff; }

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(36px, 4vw, 60px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}

.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: var(--accent); }

.sec-title {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.sec-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 52ch;
  justify-self: end;
}

.section-dark .sec-sub { color: rgba(255, 255, 255, 0.6); }

/* --------------------------- positioning ------------------------ */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

.split-media { position: relative; }

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  filter: saturate(0.95);
}

.split-media .badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--accent);
  color: #fff;
  padding: 22px 26px;
  max-width: 190px;
}

.badge-num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.badge-txt { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; margin-top: 6px; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 20px;
}

.body-text { color: var(--muted); font-size: 15px; }

.ticks { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; }

.ticks li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  align-items: flex-start;
}

.ticks li::before {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  margin-top: 4px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 90, 31, 0.4);
  position: relative;
}

/* ------------------------- process cards ------------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-card {
  background: #fff;
  padding: 30px 26px 34px;
  position: relative;
  transition: background 0.3s, transform 0.3s;
}

.process-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.process-card:hover::before { transform: scaleX(1); }
.process-card:hover { background: #fbfbf9; }

.process-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 18px;
}

.process-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.process-card .cn {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 14px;
}

.process-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* ------------------------- category grid ------------------------ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.cat-card {
  position: relative;
  grid-column: span 2;
  min-height: 260px;
  overflow: hidden;
  background: var(--ink-2);
  color: #fff;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.cat-card:nth-child(1), .cat-card:nth-child(2) { grid-column: span 3; min-height: 380px; }
.cat-card:nth-child(9), .cat-card:nth-child(10) { grid-column: span 3; min-height: 300px; }

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.8s var(--ease);
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 12, 20, 0.96) 0%, rgba(4, 12, 20, 0.62) 42%, rgba(4, 12, 20, 0.12) 100%);
  transition: background 0.4s;
}

.cat-card:hover img { transform: scale(1.06); }
.cat-card:hover::after { background: linear-gradient(to top, rgba(4, 12, 20, 0.95) 0%, rgba(4, 12, 20, 0.5) 50%, rgba(255, 90, 31, 0.12) 100%); }

.cat-body { padding: 24px 26px 26px; width: 100%; }

.cat-index {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.cat-card h3 {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}

.cat-sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s;
}

.cat-card:hover .cat-sub-list { max-height: 90px; opacity: 1; }

.cat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.cat-meta svg { width: 16px; height: 16px; color: var(--accent); transition: transform 0.3s var(--ease); }
.cat-card:hover .cat-meta svg { transform: translate(3px, -3px); }

/* --------------------------- industry list ---------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.industry-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.25s, padding-left 0.25s;
}

.industry-row:nth-child(odd) { padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.industry-row:nth-child(even) { padding-left: 40px; }

.industry-row:hover { background: rgba(255, 255, 255, 0.04); }

.industry-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  flex: 0 0 28px;
}

.industry-name { font-size: clamp(0.95rem, 1.3vw, 1.1rem); font-family: var(--font-display); letter-spacing: -0.01em; }

.industry-cn { font-size: 12.5px; color: rgba(255, 255, 255, 0.55); margin-left: auto; letter-spacing: 0.02em; }

/* --------------------------- strength --------------------------- */
.media-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.media-collage img { width: 100%; height: 100%; object-fit: cover; }
.media-collage img:first-child { grid-row: span 2; }

.strength-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 30px;
}

.strength-stat { background: #fff; padding: 22px 20px; }
.strength-stat b {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: block;
  line-height: 1.1;
}
.strength-stat span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* --------------------------- global band ------------------------ */
.global-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.global-item { padding: 34px 20px 34px 0; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.global-item:last-child { border-right: 0; }
.global-item b {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}
.global-item span { display: block; margin-top: 10px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }

/* --------------------------- workflow --------------------------- */
.flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  counter-reset: step;
  position: relative;
}

.flow-step { padding: 0 18px 0 0; position: relative; }

.flow-step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 34px;
  right: 0;
  height: 1px;
  background: var(--line);
}

.flow-step:last-child::before { display: none; }

.flow-dot {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.flow-step h4 { font-size: 15px; margin-bottom: 8px; }
.flow-step p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ----------------------------- CTA ------------------------------ */
.cta-band {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.cta-band .bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 32, 0.98) 0%, rgba(8, 20, 32, 0.85) 55%, rgba(8, 20, 32, 0.5) 100%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: clamp(56px, 7vw, 92px) 0;
}

.cta-inner h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-bottom: 18px; }
.cta-inner p { color: rgba(255, 255, 255, 0.7); max-width: 50ch; margin: 0; }

.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 380px; justify-self: end; width: 100%; }

.cta-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-phone svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 20px; }
.cta-phone .k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); display: block; margin-bottom: 2px; }
.cta-phone b { font-family: var(--font-display); font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }

/* ---------------------------- footer ---------------------------- */
.site-footer { background: #050e17; color: rgba(255, 255, 255, 0.6); font-size: 13px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 44px;
  padding: clamp(52px, 6vw, 80px) 0 54px;
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 12.5px; line-height: 1.7; max-width: 34ch; color: rgba(255, 255, 255, 0.45); }

.footer-col h5 {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 600;
}

.footer-col a, .footer-col li {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
  list-style: none;
}

.footer-col a:hover { color: #fff; }

.footer-contact div { margin-bottom: 14px; }
.footer-contact .k { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.32); margin-bottom: 3px; }
.footer-contact .v { color: rgba(255, 255, 255, 0.75); font-size: 13px; line-height: 1.5; }
.footer-contact a.v:hover { color: var(--accent); }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-social svg { width: 15px; height: 15px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.32);
}

/* --------------------------- page header ------------------------ */
.page-head {
  background: var(--ink);
  color: #fff;
  padding: clamp(56px, 7vw, 96px) 0 clamp(44px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.page-head .bg { position: absolute; inset: 0; opacity: 0.34; }
.page-head .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 20, 32, 0.94), rgba(8, 20, 32, 0.42));
}

.page-head .wrap { position: relative; z-index: 2; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}
.crumbs a:hover { color: #fff; }
.crumbs span.sep { opacity: 0.4; }

.page-head h1 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: balance;
}

.page-head .sub {
  margin-top: 16px;
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

/* --------------------------- product cards ---------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 20px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }

.product-card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}

.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover .thumb img { transform: scale(1.05); }

.product-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.product-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .cat-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.product-card h3 { font-size: 15px; line-height: 1.35; margin-bottom: 8px; }
.product-card p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0 0 14px; }
.product-card .more { margin-top: auto; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.product-card .more svg { width: 13px; height: 13px; color: var(--accent); }
.product-card:hover .more { color: var(--accent); }

/* --------------------------- filters ---------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}

.chip {
  padding: 9px 16px;
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}

.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ------------------------- category detail ---------------------- */
.cat-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--ink);
  color: #fff;
}

.cat-hero-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.cat-hero-body { padding: clamp(36px, 5vw, 68px); align-self: center; }
.cat-hero-body h1 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin-bottom: 14px; }
.cat-hero-body p { color: rgba(255, 255, 255, 0.62); font-size: 14.5px; max-width: 52ch; }

.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 48px;
}

.subcat-item { background: #fff; padding: 22px 22px; transition: background 0.2s; }
.subcat-item:hover { background: #fbfbf9; }
.subcat-item h4 { font-size: 14px; margin-bottom: 6px; }
.subcat-item p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* --------------------------- product detail --------------------- */
.pd-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(30px, 4vw, 64px);
  align-items: start;
}

.pd-gallery .main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.pd-gallery .main img { width: 100%; height: 100%; object-fit: cover; }

.pd-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.pd-thumbs button {
  width: 84px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.pd-thumbs button.active { opacity: 1; border-color: var(--accent); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .cat-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pd-info h1 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 16px; letter-spacing: -0.03em; }
.pd-info .summary { font-size: 15.5px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }

.pd-facts {
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}
.pd-fact {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.pd-fact dt { color: var(--muted); }
.pd-fact dd { margin: 0; font-weight: 500; text-align: right; }

.pd-actions { display: flex; flex-direction: column; gap: 10px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 38%; color: var(--muted); font-weight: 400; background: rgba(0, 0, 0, 0.015); }
.spec-table tr:hover td, .spec-table tr:hover th { background: rgba(255, 90, 31, 0.04); }

.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; font-size: 14px; line-height: 1.6; list-style: none; }
.feature-list li::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--accent);
}

/* ---------------------------- prose ----------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 44px 0 16px; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 10px; }
.prose p { color: #2b3742; font-size: 15.5px; line-height: 1.8; }
.prose ul { margin: 0 0 22px; padding-left: 0; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 10px; color: #2b3742; font-size: 15px; line-height: 1.7; list-style: none; }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--accent); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(255, 90, 31, 0.35); }

/* ---------------------------- contact --------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
}

.contact-cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-card { background: #fff; padding: 22px 24px; }
.contact-card .k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-card .v { font-size: 14.5px; line-height: 1.55; }
.contact-card a.v:hover { color: var(--accent); }

.form-card { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fdfdfc;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-note { font-size: 11.5px; color: var(--muted-light); margin-top: 14px; line-height: 1.5; }

.alert {
  padding: 14px 16px;
  font-size: 13.5px;
  margin-bottom: 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: #8a2f0a;
}
.alert-error { border-left-color: #c0392b; background: rgba(192, 57, 43, 0.08); color: #8e2b20; }

/* ---------------------------- search ---------------------------- */
.search-form { display: flex; gap: 10px; max-width: 620px; margin-bottom: 40px; }
.search-form input { flex: 1; border: 1px solid var(--line); background: #fff; padding: 14px 16px; font-size: 15px; }
.search-form input:focus { outline: none; border-color: var(--accent); }

/* ---------------------------- reveal ---------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------- empty ----------------------------- */
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ============================ responsive ======================== */
@media (max-width: 1320px) {
  .header-phone { display: none; }
  .nav-link { padding: 10px 10px; font-size: 13px; }
}

@media (max-width: 1180px) {
  .mega-inner { grid-template-columns: 1fr; gap: 28px; }
  .mega-intro p { max-width: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); gap: 32px 0; }
  .flow-step:nth-child(3n)::before { display: none; }
}

@media (max-width: 980px) {
  .topbar-left .topbar-item:nth-child(n+3) { display: none; }
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary { display: none; }

  .main-nav.open {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: #050e17;
    flex-direction: column;
    align-items: stretch;
    padding: 116px var(--pad) 40px;
    gap: 0;
    overflow: auto;
    z-index: 90;
  }

  body.nav-open .brand,
  body.nav-open .header-actions { position: relative; z-index: 95; }

  .main-nav.open .nav-link {
    font-size: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open .nav-link.active::after { display: none; }

  .mega { display: none; }

  .main-nav.open .mobile-cta { display: block; margin-top: 6px; }
  .main-nav.open .mobile-cta .btn { width: 100%; }

  .main-nav.open .mobile-langs {
    display: block;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-langs .lang-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
  }

  .lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
  .lang-grid a { font-size: 13.5px; color: rgba(255, 255, 255, 0.68); padding: 7px 0; }
  .lang-grid a.active { color: var(--accent); }

  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .sec-sub { justify-self: start; }
  .split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .pd-layout { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .cat-hero { grid-template-columns: 1fr; }
  .cat-hero-media img { min-height: 280px; }
  .subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .global-band { grid-template-columns: repeat(2, 1fr); }
  .global-item:nth-child(2n) { border-right: 0; }
  .global-item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-row:nth-child(odd) { border-right: 0; padding-right: 8px; }
  .industry-row:nth-child(even) { padding-left: 8px; }
  .hero-side { display: none; }
}

@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card { grid-column: span 1 !important; min-height: 240px; }
  .cat-sub-list { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(3n)::before { display: block; }
  .flow-step:nth-child(2n)::before { display: none; }
  .subcat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .strength-stats { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 7.4vw, 2.6rem); }
  .brand-text span { display: none; }
  .header-inner { min-height: 64px; }
  .main-nav.open { padding-top: 96px; }
  .topbar .wrap { justify-content: center; }
  .topbar-right { display: none; }
  .page-head h1 { max-width: none; }
}

@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow-step::before { display: none !important; }
  .media-collage { grid-template-columns: 1fr; }
  .media-collage img:first-child { grid-row: auto; }
}

/* RTL */
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-menu a { flex-direction: row-reverse; }
[dir="rtl"] .topbar-left, [dir="rtl"] .topbar-right { flex-direction: row-reverse; }
[dir="rtl"] .scroll-hint { display: none; }
[dir="rtl"] .sec-sub { justify-self: start; }
[dir="rtl"] .link-arrow svg { transform: scaleX(-1); }
[dir="rtl"] .cat-meta svg { transform: scaleX(-1); }
[dir="rtl"] .pd-fact dd { text-align: left; }
[dir="rtl"] .footer-contact { text-align: right; }
