:root {
  --red: #d42020;
  --red-dark: #9f1111;
  --ink: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --soft: #f6f7f9;
  --steel: #334155;
  --green: #6dbb28;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(212, 32, 32, 0.05), transparent 30%),
    linear-gradient(90deg, rgba(51, 65, 85, 0.05) 1px, transparent 1px),
    #ffffff;
  background-size: auto, 34px 34px, auto;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: #ffffff;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  font-size: 11px;
  opacity: 0.75;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font-size: 14px;
  font-weight: 650;
}

.header-cta,
.primary-button,
.secondary-button,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.header-cta {
  color: var(--red);
  background: #ffffff;
}

.site-header.scrolled .header-cta {
  color: #ffffff;
  background: var(--red);
}

.menu-button {
  display: none;
  width: 46px;
  height: 42px;
  border: 0;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 9px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 30px;
  padding: 124px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(112deg, rgba(150, 15, 15, 0.95) 0%, rgba(212, 32, 32, 0.96) 46%, rgba(255, 255, 255, 0.92) 46.2%, rgba(255, 255, 255, 0.96) 100%),
    var(--red);
}

.hero::after {
  content: "";
  position: absolute;
  right: -18vw;
  bottom: -26vh;
  width: 58vw;
  height: 58vw;
  border: 46px solid rgba(51, 65, 85, 0.08);
  transform: rotate(18deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 6.4vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.7;
}

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

.primary-button {
  color: #ffffff;
  background: var(--ink);
}

.secondary-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.08);
}

.full {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: 0;
}

.hero-stats div {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 16px;
}

.hero-stats dt {
  font-size: 34px;
  font-weight: 850;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.hero-media {
  position: relative;
  z-index: 2;
  min-height: 520px;
}

.hero-media img {
  position: absolute;
  right: clamp(-90px, -5vw, -20px);
  bottom: 5vh;
  width: min(820px, 58vw);
  filter: drop-shadow(0 34px 40px rgba(23, 32, 51, 0.28));
}

.product-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: #ffffff;
}

.product-strip span {
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-weight: 800;
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.intro-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 58px;
  align-items: start;
}

.intro-section p,
.contact-section p,
.factory-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter {
  min-height: 40px;
  border: 1px solid var(--line);
  color: var(--steel);
  background: #ffffff;
}

.filter.active {
  color: #ffffff;
  border-color: var(--red);
  background: var(--red);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 500px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.product-image {
  display: grid;
  min-height: 245px;
  place-items: center;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f4f6f8);
}

.product-image img {
  max-height: 210px;
  object-fit: contain;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.product-meta {
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 8px 0 14px;
  font-size: 24px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
}

.spec-list div {
  padding: 12px;
  background: var(--soft);
}

.spec-list dt {
  color: var(--muted);
  font-size: 12px;
}

.spec-list dd {
  margin: 4px 0 0;
  font-weight: 820;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.detail-button,
.quote-button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
}

.quote-button {
  border-color: var(--red);
  color: #ffffff;
  background: var(--red);
}

.applications {
  background: var(--soft);
}

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

.application-grid article {
  min-height: 250px;
  padding: 28px;
  border-top: 5px solid var(--red);
  background: #ffffff;
}

.application-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--red);
  font-weight: 850;
}

.application-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.factory-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 58px;
  padding: 96px clamp(20px, 5vw, 72px);
  color: #ffffff;
  background:
    linear-gradient(125deg, rgba(23, 32, 51, 0.96), rgba(23, 32, 51, 0.82)),
    var(--ink);
}

.factory-points {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.factory-points li {
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 760;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--steel);
  font-size: 13px;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 13px 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.quote-form textarea {
  resize: vertical;
}

.email-link {
  color: var(--red);
  font-weight: 800;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 6px;
  color: var(--muted);
}

.site-footer a {
  color: var(--red);
  font-weight: 850;
}

.product-modal {
  width: min(960px, calc(100vw - 28px));
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-modal::backdrop {
  background: rgba(15, 23, 42, 0.76);
}

.product-modal img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  background: #ffffff;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 42px;
  border: 0;
  padding: 0 16px;
  color: #ffffff;
  background: var(--red);
  font-weight: 850;
  cursor: pointer;
}

.product-page-body {
  background: #ffffff;
}

.product-detail-page {
  padding-top: 86px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.85fr);
  gap: 46px;
  align-items: center;
  min-height: 680px;
  padding: 78px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(112deg, #ffffff 0%, #ffffff 48%, rgba(212, 32, 32, 0.08) 48.2%, rgba(212, 32, 32, 0.14) 100%),
    #ffffff;
}

.product-hero-copy h1 {
  color: var(--ink);
}

.product-hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.secondary-button.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.product-hero-image {
  display: grid;
  min-height: 430px;
  place-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4f6f8);
  box-shadow: var(--shadow);
}

.product-hero-image img {
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(23, 32, 51, 0.16));
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.48fr);
  gap: 34px;
  padding: 88px clamp(20px, 5vw, 72px);
  background: var(--soft);
}

.product-spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.product-spec-table th,
.product-spec-table td {
  border-bottom: 1px solid var(--line);
  padding: 17px 18px;
  text-align: left;
  vertical-align: top;
}

.product-spec-table th {
  width: 32%;
  color: var(--steel);
  background: #f1f3f6;
  font-weight: 850;
}

.product-spec-table td {
  color: var(--ink);
}

.product-side-panel {
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.product-side-panel ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.product-side-panel li {
  padding: 12px 14px;
  border-left: 4px solid var(--red);
  background: var(--soft);
  font-weight: 760;
}

.product-side-panel img {
  width: 100%;
  border: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 118px;
    background:
      linear-gradient(160deg, rgba(150, 15, 15, 0.98) 0%, rgba(212, 32, 32, 0.96) 56%, #ffffff 56.2%, #ffffff 100%);
  }

  .hero-media {
    min-height: 390px;
  }

  .hero-media img {
    right: 50%;
    bottom: 0;
    width: min(760px, 92vw);
    transform: translateX(50%);
  }

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

  .intro-section,
  .contact-section,
  .factory-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow);
  }

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

  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero {
    padding: 104px 18px 44px;
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-stats,
  .product-strip,
  .product-grid,
  .application-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-actions,
  .section-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .section,
  .factory-section {
    padding: 70px 18px;
  }

  .filter-bar {
    justify-content: flex-start;
  }

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

  .product-hero,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .product-hero {
    min-height: auto;
    padding: 96px 18px 56px;
  }

  .product-hero-image {
    min-height: 280px;
  }

  .product-detail-layout {
    padding: 62px 18px;
  }

  .product-spec-table th,
  .product-spec-table td {
    display: block;
    width: 100%;
  }
}
