:root {
  --ink: #16191b;
  --panel: #202326;
  --muted: #676b70;
  --paper: #f2efe9;
  --paper-2: #e7e1d7;
  --line: #d7d0c5;
  --red: #a71930;
  --red-2: #c5163a;
  --gold: #b39a68;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(22, 25, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Corbel, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  background: rgba(242, 239, 233, 0.92);
  border-bottom: 1px solid rgba(215, 208, 197, 0.78);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 188px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #33373a;
  font: 700 13px "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

.main-nav a {
  padding: 8px 0;
}

.main-nav a:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  background: var(--panel);
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 18, 20, 0.95) 0%, rgba(16, 18, 20, 0.75) 45%, rgba(16, 18, 20, 0.25) 100%),
    linear-gradient(180deg, rgba(16, 18, 20, 0.15), rgba(16, 18, 20, 0.76));
}

.hero::after {
  content: "";
  position: absolute;
  top: -9vh;
  right: 7vw;
  width: 210px;
  height: 58vh;
  transform: skewX(-12deg);
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 440px);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  min-height: 96vh;
  padding: 132px clamp(20px, 6vw, 84px) 72px;
}

.hero-copy {
  color: var(--white);
}

.hero-logo {
  width: min(330px, 76vw);
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font: 800 12px "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.red {
  color: var(--red);
}

.eyebrow.gold {
  color: var(--gold);
}

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

h1 {
  max-width: 620px;
  margin-bottom: 22px;
  font: 800 clamp(48px, 8vw, 96px) / 0.92 "Segoe UI", Arial, sans-serif;
}

h2 {
  margin-bottom: 18px;
  font: 800 clamp(30px, 4.2vw, 56px) / 1 "Segoe UI", Arial, sans-serif;
}

h3 {
  font: 800 21px / 1.1 "Segoe UI", Arial, sans-serif;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #d8d2c8;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font: 800 13px "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.btn.primary,
.filter.active {
  color: var(--white);
  background: var(--red);
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.filter {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  max-width: 440px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
}

.hero-card div {
  min-height: 112px;
  padding: 22px;
  background: rgba(242, 239, 233, 0.96);
}

.hero-card strong {
  display: block;
  color: var(--red);
  font: 800 31px "Segoe UI", Arial, sans-serif;
}

.hero-card span {
  color: var(--muted);
  font: 800 12px "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

.section {
  padding: clamp(70px, 9vw, 118px) 0;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.intro-band {
  padding: 64px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.intro-band p,
.section-title p,
.customization p,
.contact-copy p,
.footer span {
  color: var(--muted);
  font-size: 17px;
}

.section-title {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-title.light {
  color: var(--white);
}

.section-title.light p {
  color: #cfc7ba;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(22, 25, 27, 0.08);
}

.product-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #f7f4ee);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-x3s .product-image img {
  width: 78%;
}

.product-cq .product-image img,
.product-xh .product-image img,
.product-a8 .product-image img {
  width: 92%;
  height: 92%;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
  border-top: 5px solid var(--red);
}

.product-body .tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--gold);
  font: 800 11px "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

.product-body h3 {
  margin-bottom: 6px;
}

.product-body > p {
  color: var(--muted);
}

.specs {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 12px;
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #ece7df;
  padding-top: 9px;
  font-size: 14px;
}

.specs span:first-child {
  color: var(--muted);
}

.specs span:last-child {
  font-weight: 800;
  text-align: right;
}

.dark {
  color: var(--white);
  background: var(--ink);
}

.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.factory-main img,
.factory-stack img {
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.factory-main img {
  height: 566px;
}

.factory-stack {
  display: grid;
  gap: 18px;
}

.factory-stack img {
  height: 176px;
}

.flow-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.flow-grid article,
.service-grid article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.flow-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font: 800 12px "Segoe UI", Arial, sans-serif;
}

.flow-grid strong,
.service-grid strong {
  display: block;
  margin-bottom: 8px;
  font: 800 18px "Segoe UI", Arial, sans-serif;
}

.flow-grid p {
  margin-bottom: 0;
  color: #cfc7ba;
  font-size: 15px;
}

.customization {
  background: var(--paper-2);
}

.customization .btn {
  margin-top: 12px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.service-grid article {
  background: var(--white);
  border-color: var(--line);
}

.position {
  padding: 0;
  background: var(--paper);
}

.position-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(38px, 7vw, 72px);
  color: var(--white);
  background: var(--panel);
}

.position-panel img {
  width: 150px;
}

.position-panel h2 {
  margin-bottom: 0;
  font-size: clamp(27px, 3.4vw, 44px);
}

.contact {
  background:
    linear-gradient(110deg, rgba(22, 25, 27, 0.98) 0%, rgba(22, 25, 27, 0.91) 58%, rgba(167, 25, 48, 0.84) 100%),
    url("assets/factory/factory-warehouse.png") center/cover;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.contact-copy img {
  width: 310px;
  margin-bottom: 42px;
}

.contact-copy h2 {
  max-width: 520px;
}

.contact-copy p {
  max-width: 620px;
  color: #d8d1c6;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font: 800 12px "Segoe UI", Arial, sans-serif;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfaf7;
  font: 16px Corbel, "Segoe UI", Arial, sans-serif;
}

.contact-form textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.floating-actions {
  position: fixed;
  z-index: 18;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.floating-actions a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  font: 800 12px "Segoe UI", Arial, sans-serif;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: #d8d1c6;
  background: #111315;
}

.footer div {
  display: grid;
  gap: 6px;
}

.footer strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 13px 0;
  }

  .hero-content,
  .split,
  .factory-layout,
  .contact-layout,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-main img,
  .factory-stack img {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand img {
    width: 150px;
  }

  .main-nav {
    top: 68px;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    width: 120px;
    height: 42vh;
    right: -22px;
  }

  .hero-content {
    min-height: auto;
    padding: 112px 20px 46px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-card,
  .product-grid,
  .service-grid,
  .flow-grid,
  .contact-form,
  .position-panel {
    grid-template-columns: 1fr;
  }

  .product-image {
    aspect-ratio: 1.18 / 1;
    padding: 16px;
  }

  .position-panel {
    padding: 34px 24px;
  }

  .position-panel img {
    width: 96px;
  }

  .footer {
    padding-bottom: 86px;
  }
}
