:root {
  --blue: #0757c8;
  --blue-2: #0b6feb;
  --blue-dark: #143a8f;
  --orange: #e16531;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --white: #ffffff;
  --shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.14);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

body::selection {
  background: rgba(7, 87, 200, 0.18);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1500px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(7, 35, 82, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

.brand img {
  width: 130px;
  max-height: 58px;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a:hover {
  color: #ffffff;
}

.nav-cta,
.button,
.quote-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 24px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 10px 22px rgba(7, 87, 200, 0.22);
}

.nav-cta:hover,
.button:hover,
.quote-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(7, 87, 200, 0.28);
}

.nav-cta {
  font-family: inherit;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 150px 0 56px;
  background: #07182f;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 24, 47, 0.9) 0%, rgba(7, 24, 47, 0.72) 50%, rgba(7, 24, 47, 0.42) 100%),
    url("assets/factory-a.jpg") center bottom / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(7, 24, 47, 0.72));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 12px;
}

.hero-copy {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #60a5fa;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: clamp(46px, 5.4vw, 78px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--orange);
}

.lead {
  max-width: 780px;
  color: #cbd5e1;
  font-size: 20px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.button.ghost {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.notice {
  max-width: 640px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.notice strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
}

.notice span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 14px;
}

.hero-media {
  display: none;
}

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  max-width: 820px;
  padding: 26px 0 6px;
  text-align: left;
}

.stats b {
  display: block;
  color: var(--orange);
  font-size: 32px;
  line-height: 1;
}

.stats span {
  color: #cbd5e1;
  font-size: 14px;
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 2;
  width: 26px;
  height: 44px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.scroll-indicator span {
  display: block;
  width: 6px;
  height: 12px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.trust-bar {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.value-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  overflow: hidden;
  padding: 34px 0;
  border-radius: 0;
  color: var(--ink);
  box-shadow: none;
}

.value-strip article {
  position: relative;
  min-height: 0;
  padding: 0 0 0 44px;
  background: transparent;
}

.value-strip h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.value-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.value-icon {
  position: absolute;
  left: 0;
  top: 1px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(7, 87, 200, 0.1);
  color: var(--blue);
}

.value-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-clients {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.client-logo-card {
  display: flex;
  height: 116px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.client-logo-card img {
  display: block;
  width: auto;
  max-width: calc(100% - 34px);
  max-height: none;
  object-fit: contain;
}

.logo-sany img {
  height: 44px;
}

.logo-hitachi img {
  height: 32px;
  max-width: calc(100% - 28px);
}

.logo-cat img {
  height: 30px;
}

.logo-hyundai img {
  height: 26px;
  max-width: calc(100% - 18px);
}

.logo-liugong img {
  height: 34px;
}

.logo-sdlg img {
  height: 70px;
}

.section {
  padding: 80px 0;
  scroll-margin-top: 96px;
}

#top,
.contact-section {
  scroll-margin-top: 96px;
}

.section-head {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto 42px;
  text-align: center;
}

.section-head h2,
.cert-grid h2,
.contact-copy h2,
.quote-form h2 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
  font-weight: 800;
}

.section-head h2 .accent {
  color: var(--orange);
}

.section-head p {
  color: var(--muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.18fr repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: 18px;
}

.products-section {
  background: #ffffff;
}

.product-card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card.featured {
  grid-row: span 2;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(11, 111, 235, 0.1);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.25 / 1;
  height: auto;
  object-fit: cover;
  background: #f0f6fc;
  transition: transform 0.45s ease;
}

.product-card.featured img {
  aspect-ratio: 1 / 1;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card div {
  padding: 20px;
}

.product-card span {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(7, 87, 200, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 10px 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.product-card p {
  min-height: 72px;
  color: var(--muted);
  font-size: 14px;
}

.text-button {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.case-section {
  background: var(--soft);
}

.text-button::after {
  content: " →";
}

.why-section,
.cert-section {
  background: var(--soft);
}

.why-section {
  background: #07182f;
  color: #ffffff;
}

.why-section .section-head h2 {
  color: #ffffff;
}

.why-section .section-head p {
  color: #cbd5e1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
}

.why-grid article {
  position: relative;
  min-height: 360px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  overflow: hidden;
  transition: background 0.25s ease;
}

.why-grid article:last-child {
  border-right: 0;
}

.why-grid article:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.why-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: grayscale(0.25);
}

.why-grid article > span {
  position: relative;
  z-index: 1;
  display: block;
  padding: 26px 24px 0;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.why-grid h3,
.why-grid p {
  position: relative;
  z-index: 1;
  margin-left: 24px;
  margin-right: 24px;
}

.why-grid h3 {
  margin-top: 155px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.16;
}

.why-grid p {
  margin-bottom: 26px;
  color: #cbd5e1;
  font-size: 15px;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.client-logos img {
  width: 100%;
  height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  object-fit: contain;
}

.case-list {
  display: grid;
  gap: 34px;
}

.case-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.case-card.case-carousel {
  display: block;
}

.case-slide {
  display: none;
  grid-template-columns: 0.95fr 1.05fr;
}

.case-slide.is-active {
  display: grid;
}

.case-card.reverse .case-image {
  order: 2;
}

.case-card.reverse .case-content {
  order: 1;
}

.case-image {
  position: relative;
  min-height: 390px;
  overflow: hidden;
}

.case-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
  transform: scale(1.05);
}

.case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.72));
}

.case-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: #ffffff;
}

.case-info span,
.case-info small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.case-info strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
  line-height: 1.15;
}

.case-content {
  padding: 38px;
}

.case-content h3 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.18;
}

.case-content h4 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-content p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.case-result {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: var(--soft);
}

.case-result span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.case-result b {
  color: var(--ink);
  font-size: 15px;
}

.case-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.case-card.controls-left .case-controls {
  top: 22px;
  right: auto;
  left: 22px;
}

.case-arrow,
.case-dot {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.case-arrow {
  font-size: 22px;
  line-height: 1;
}

.case-dot.is-active {
  background: var(--blue);
  color: #ffffff;
}

.case-cta {
  margin-top: 34px;
  text-align: center;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-auto-rows: 210px;
  gap: 18px;
}

.app-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #0f172a;
}

.app-grid figure:first-child,
.app-grid figure:nth-child(5) {
  grid-row: span 2;
}

.app-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.app-grid figure:hover img {
  transform: scale(1.04);
}

.app-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}

.factory-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.factory-section {
  background: #ffffff;
}

.factory-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-auto-rows: 210px;
  gap: 18px;
}

.factory-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: #0f172a;
  box-shadow: var(--shadow);
}

.factory-grid figure:first-child {
  grid-row: span 2;
}

.factory-grid figure:nth-child(4) {
  grid-column: span 2;
}

.factory-grid figure:hover img {
  transform: scale(1.04);
}

.factory-grid figcaption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.factory-cta {
  margin-top: 30px;
  text-align: center;
}

.button.dark,
.button.ghost.dark {
  color: var(--blue);
  border-color: var(--blue);
}

.cert-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 46px;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.cert-intro {
  max-width: none;
}

.cert-grid p {
  color: var(--muted);
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.mini-tags span {
  padding: 9px 14px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.cert-card {
  position: relative;
  min-width: 0;
  padding: 18px 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #0b74e8);
  box-shadow: 0 20px 45px rgba(7, 87, 200, 0.22);
}

.cert-viewport {
  overflow: hidden;
}

.cert-track {
  display: grid;
  grid-auto-columns: calc((100% - 28px) / 3);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cert-track::-webkit-scrollbar {
  display: none;
}

.cert-slide {
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}

.cert-slide img {
  width: 100%;
  height: 300px;
  border-radius: 7px;
  background: #ffffff;
  object-fit: contain;
}

.cert-slide figcaption {
  margin-top: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cert-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--blue);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.cert-nav-prev {
  left: 12px;
}

.cert-nav-next {
  right: 12px;
}

.contact-section {
  padding: 86px 0;
  background: linear-gradient(135deg, var(--blue), #064fb2);
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 52px;
  align-items: center;
}

.quote-form {
  padding: 34px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.quote-form h2 {
  color: #1f2937;
}

.quote-form label {
  display: block;
  margin-top: 16px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  padding: 13px 14px;
  color: #1f2937;
  font: inherit;
}

.quote-form textarea {
  min-height: 104px;
  resize: vertical;
}

.quote-form button {
  width: 100%;
  margin-top: 22px;
  background: var(--blue);
}

.contact-copy .eyebrow,
.contact-copy h2 {
  color: #ffffff;
}

.contact-copy p,
.contact-copy li {
  color: rgba(255, 255, 255, 0.82);
}

.contact-copy a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.contact-copy a:hover {
  color: rgba(255, 255, 255, 0.86);
}

.contact-copy .inline-contact-link {
  display: inline-block;
  margin-left: 10px;
}

.contact-copy ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.qr-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  margin-top: 28px;
}

.qr-card {
  display: block;
  width: 150px;
  margin: 0;
  padding: 12px 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.2);
}

.qr-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-card figcaption,
.qr-card span {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
}

.modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef6ff;
  color: var(--blue);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-form {
  padding: 38px;
}

.modal-form h2 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 32px;
  line-height: 1.16;
}

.modal-form p {
  color: var(--muted);
}

.modal-form label {
  display: block;
  margin-top: 15px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  padding: 13px 14px;
  color: #1f2937;
  font: inherit;
}

.modal-form textarea {
  min-height: 104px;
  resize: vertical;
}

.modal-form > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

body.modal-locked {
  overflow: hidden;
}

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .cert-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .case-card,
  .case-card.reverse {
    grid-template-columns: 1fr;
  }

  .case-slide.is-active {
    grid-template-columns: 1fr;
  }

  .case-card.reverse .case-image,
  .case-card.reverse .case-content {
    order: initial;
  }

  .case-image {
    min-height: 320px;
  }

  .stats,
  .value-strip,
  .hero-clients,
  .why-grid,
  .app-grid,
  .factory-grid,
  .client-logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-grid,
  .factory-grid {
    grid-auto-rows: 230px;
  }

  .app-grid figure:first-child,
  .app-grid figure:nth-child(5),
  .factory-grid figure:first-child,
  .factory-grid figure:nth-child(4) {
    grid-row: span 1;
    grid-column: span 1;
  }

}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(100% - 28px, 1500px);
  }

  .nav {
    min-height: 62px;
    gap: 12px;
  }

  nav {
    justify-content: flex-start;
    gap: 14px;
    font-size: 12px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero {
    padding: 116px 0 56px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .stats,
  .value-strip,
  .hero-clients,
  .why-grid,
  .app-grid,
  .factory-grid,
  .client-logos {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 18px;
  }

  .value-strip {
    gap: 18px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .app-grid,
  .factory-grid {
    grid-auto-rows: 240px;
  }

  .app-grid {
    grid-auto-rows: 300px;
  }

  .app-grid figure:nth-child(6) {
    min-height: 0;
  }

  .app-grid {
    grid-auto-rows: 300px;
  }

  .app-grid figure:nth-child(6) {
    min-height: 300px;
  }

  .cert-grid {
    padding: 24px;
  }

  .cert-card {
    padding: 14px 42px;
  }

  .cert-track {
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
  }

  .cert-slide img {
    height: 220px;
  }

  .section {
    padding: 66px 0;
  }

  .product-card {
    min-height: auto;
  }

  .product-card img {
    height: 300px;
    min-height: 300px;
  }

  .product-card div {
    padding: 18px;
  }

  .product-card h3 {
    font-size: 22px;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .product-card p {
    min-height: auto;
  }

  .case-image {
    min-height: 260px;
  }

  .case-content {
    padding: 24px;
  }

  .case-content h3 {
    font-size: 24px;
  }
}

/* Stable section reset: varied layouts without broken masonry */
.products-section {
  background: #ffffff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  grid-auto-flow: row;
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.product-card,
.product-card.featured {
  display: flex;
  grid-column: auto;
  grid-row: auto;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.product-card img,
.product-card.featured img {
  display: block;
  width: 100%;
  height: clamp(250px, 18vw, 320px);
  min-height: clamp(250px, 18vw, 320px);
  object-fit: contain;
  object-position: center;
  background: #f4f8fd;
}

.product-card div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.product-card h3 {
  min-height: 58px;
}

.product-card p {
  flex: 1;
  min-height: 0;
}

.why-section {
  background: #07182f;
  color: #ffffff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.why-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 164px 1fr;
  min-height: 196px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.why-grid article:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.why-grid img {
  position: relative;
  inset: auto;
  grid-row: 1 / 3;
  width: 164px;
  height: 100%;
  min-height: 196px;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.why-grid article > span {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.why-grid h3,
.why-grid p {
  position: relative;
  z-index: 1;
  grid-column: 2;
  margin-left: 24px;
  margin-right: 24px;
}

.why-grid h3 {
  align-self: end;
  margin-top: 30px;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
}

.why-grid p {
  align-self: start;
  margin-bottom: 30px;
  color: #cbd5e1;
  font-size: 15px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 18px;
}

.app-grid figure,
.app-grid figure:first-child,
.app-grid figure:nth-child(5) {
  grid-column: auto;
  grid-row: auto;
  border-radius: 16px;
}

.app-grid figure:first-child {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
}

.app-grid figure:nth-child(2) {
  grid-column: 6 / 9;
  grid-row: 1 / 2;
}

.app-grid figure:nth-child(3) {
  grid-column: 9 / 13;
  grid-row: 1 / 2;
}

.app-grid figure:nth-child(4) {
  grid-column: 6 / 9;
  grid-row: 2 / 3;
}

.app-grid figure:nth-child(5) {
  grid-column: 9 / 13;
  grid-row: 2 / 5;
}

.app-grid figure:nth-child(6) {
  grid-column: 1 / 9;
  grid-row: 3 / 5;
}

.app-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-grid figure:nth-child(6) img {
  object-position: center 66%;
}

.app-grid figure:nth-child(5) img {
  object-position: 68% center;
}

.app-grid figcaption {
  padding: 18px;
  font-size: 16px;
  line-height: 1.25;
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 220px;
  gap: 18px;
}

.factory-grid figure,
.factory-grid figure:first-child,
.factory-grid figure:nth-child(4) {
  grid-column: auto;
  grid-row: auto;
  border-radius: 16px;
}

.factory-grid figure:first-child {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.factory-grid figure:nth-child(2) {
  grid-column: 5 / 9;
  grid-row: 1 / 2;
}

.factory-grid figure:nth-child(3) {
  grid-column: 9 / 13;
  grid-row: 1 / 2;
}

.factory-grid figure:nth-child(4) {
  grid-column: 5 / 13;
  grid-row: 2 / 3;
}

.factory-grid figure:nth-child(5) {
  grid-column: 1 / 7;
  grid-row: 3 / 4;
}

.factory-grid figure:nth-child(6) {
  grid-column: 7 / 13;
  grid-row: 3 / 4;
}

.factory-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-grid figcaption {
  left: 16px;
  right: auto;
  bottom: 16px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.cert-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
}

.cert-grid {
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 50px rgba(7, 87, 200, 0.1);
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-grid,
  .factory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 250px;
  }

  .app-grid {
    grid-auto-rows: 300px;
  }

  .app-grid figure,
  .app-grid figure:first-child,
  .app-grid figure:nth-child(2),
  .app-grid figure:nth-child(3),
  .app-grid figure:nth-child(4),
  .app-grid figure:nth-child(5),
  .app-grid figure:nth-child(6),
  .factory-grid figure,
  .factory-grid figure:first-child,
  .factory-grid figure:nth-child(2),
  .factory-grid figure:nth-child(3),
  .factory-grid figure:nth-child(4),
  .factory-grid figure:nth-child(5),
  .factory-grid figure:nth-child(6) {
    grid-column: auto;
    grid-row: auto;
  }

  .app-grid figure:nth-child(6) {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid article {
    grid-template-columns: 138px 1fr;
  }

  .why-grid img {
    width: 138px;
  }
}

@media (max-width: 720px) {
  .product-grid,
  .app-grid,
  .factory-grid {
    grid-template-columns: 1fr;
  }

  .app-grid,
  .factory-grid {
    grid-auto-rows: 240px;
  }

  .why-grid article {
    display: block;
    min-height: 0;
  }

  .why-grid img {
    width: 100%;
    height: 220px;
    min-height: 0;
  }

  .why-grid h3,
  .why-grid p {
    grid-column: auto;
    margin-left: 20px;
    margin-right: 20px;
  }

  .why-grid h3 {
    margin-top: 20px;
  }

  .product-card h3 {
    min-height: 0;
  }
}

/* Restore the earlier four-card why section the client preferred */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.why-grid article {
  position: relative;
  display: block;
  min-height: 360px;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.why-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(7, 24, 47, 0.08), rgba(7, 24, 47, 0.52));
}

.why-grid article:last-child {
  border-right: 0;
}

.why-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.08) contrast(1.04);
}

.why-grid article > span {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  padding: 26px 24px 0;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

.why-grid h3,
.why-grid p {
  position: relative;
  z-index: 1;
  grid-column: auto;
  margin-left: 24px;
  margin-right: 24px;
}

.why-grid h3 {
  margin-top: 155px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.16;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.why-grid p {
  margin-bottom: 26px;
  color: #cbd5e1;
  font-size: 15px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22);
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid article:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-grid article {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .why-grid article:last-child {
    border-bottom: 0;
  }

  .why-grid h3 {
    margin-top: 130px;
  }
}

/* Factory gallery: thumbnail grid controls the large preview */
.factory-showcase {
  display: grid;
  grid-template-columns: minmax(620px, 0.96fr) minmax(0, 1.04fr);
  gap: 24px;
  align-items: stretch;
}

.factory-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 252px;
  gap: 16px;
}

.factory-thumb {
  position: relative;
  height: 252px;
  min-height: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0;
  background: #0f172a;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.factory-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66));
}

.factory-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.factory-thumb span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.factory-thumb:hover img,
.factory-thumb.is-active img {
  transform: scale(1.04);
}

.factory-thumb.is-active {
  border-color: var(--blue);
  box-shadow: 0 18px 42px rgba(7, 87, 200, 0.18);
}

.factory-thumb.is-active span {
  background: var(--blue);
  color: #ffffff;
}

.factory-preview {
  position: relative;
  height: 520px;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: var(--shadow-strong);
}

.factory-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-preview figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(7, 24, 47, 0.78);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.factory-preview figcaption span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

.factory-preview figcaption strong {
  font-size: 18px;
  line-height: 1.2;
}

@media (max-width: 1200px) {
  .factory-showcase {
    grid-template-columns: 1fr;
  }

  .factory-preview {
    height: 520px;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .factory-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 126px;
    gap: 12px;
  }

  .factory-thumb {
    height: 126px;
    min-height: 0;
    border-radius: 12px;
  }

  .factory-thumb span {
    left: 9px;
    bottom: 9px;
    max-width: calc(100% - 18px);
    font-size: 12px;
    line-height: 1.2;
  }

  .factory-preview {
    height: 320px;
    min-height: 0;
    border-radius: 14px;
  }

  .factory-preview figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 13px;
  }

  .factory-preview figcaption strong {
    font-size: 15px;
  }
}
