:root {
  --ink: #19171c;
  --muted: #66616c;
  --line: #e7e4ea;
  --paper: #f7f6f4;
  --white: #ffffff;
  --steel: #30333a;
  --violet: #a76ab5;
  --violet-dark: #814e90;
  --amber: #b07b3d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 16px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(231, 228, 234, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 72px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.brand img {
  width: 200px;
  height: auto;
}

.brand-name {
  color: #252129;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2.5vw, 34px);
  color: #4b4650;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--violet-dark);
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
}

.language-nav a {
  padding: 6px 9px;
  color: #5b5360;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.language-nav a:hover,
.language-nav a.active {
  color: var(--white);
  border-color: var(--violet-dark);
  background: var(--violet-dark);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--steel);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 16, 20, 0.9) 0%, rgba(17, 16, 20, 0.64) 44%, rgba(17, 16, 20, 0.16) 100%),
    linear-gradient(0deg, rgba(17, 16, 20, 0.78) 0%, rgba(17, 16, 20, 0.08) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: 150px clamp(22px, 6vw, 86px) 104px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
}

.button.primary {
  color: var(--white);
  background: var(--violet-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.quick-stats div {
  min-height: 118px;
  padding: 28px clamp(18px, 3vw, 46px);
  border-right: 1px solid var(--line);
}

.quick-stats div:last-child {
  border-right: 0;
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-size: 20px;
}

.quick-stats span {
  margin-top: 8px;
  color: var(--muted);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  background: var(--paper);
}

.section-copy,
.section-heading {
  max-width: 760px;
}

.section h2,
.contact-band h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.16;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.contact-band p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: #39343d;
  font-weight: 750;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--violet);
}

.feature-photo {
  margin: 0;
}

.feature-photo img,
.product-card img {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(24, 22, 28, 0.16);
}

.feature-photo img {
  aspect-ratio: 1.48 / 1;
}

.feature-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 1.28 / 1;
  border-radius: 0;
  box-shadow: none;
}

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

.product-card span,
.process-list span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 950;
}

.product-card h3 {
  margin: 8px 0 10px;
  font-size: 23px;
}

.product-card p,
.equipment-card p,
.process-list p {
  margin: 0;
  color: var(--muted);
}

.equipment-section {
  background: #ffffff;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.equipment-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  background: #f7f6f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.equipment-card img {
  width: 100%;
  aspect-ratio: 1.78 / 1;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(129, 78, 144, 0.12), rgba(176, 123, 61, 0.1)),
    #ebe8e2;
}

.equipment-card div {
  padding: 22px;
}

.equipment-card span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 950;
}

.equipment-card h3 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.process-section {
  background: var(--paper);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-list li {
  min-height: 218px;
  padding: 26px;
  background: var(--white);
}

.process-list strong {
  display: block;
  margin: 14px 0 12px;
  font-size: 21px;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(62px, 8vw, 100px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(39, 34, 45, 0.98), rgba(39, 34, 45, 0.9)),
    url("assets/photos/flange-batch.jpg") center / cover;
}

.contact-copy {
  max-width: 820px;
}

.contact-band p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 22px;
  align-items: center;
  padding: 26px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
}

.contact-list {
  display: grid;
  gap: 13px;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: start;
}

.contact-list dt {
  color: var(--violet-dark);
  font-size: 14px;
  font-weight: 900;
}

.contact-list dd {
  margin: 0;
  color: #27232c;
  font-size: 17px;
  font-weight: 800;
}

[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(17, 16, 20, 0.9) 0%, rgba(17, 16, 20, 0.64) 44%, rgba(17, 16, 20, 0.16) 100%),
    linear-gradient(0deg, rgba(17, 16, 20, 0.78) 0%, rgba(17, 16, 20, 0.08) 48%);
}

[dir="rtl"] .nav,
[dir="rtl"] .language-nav {
  justify-content: flex-start;
}

[dir="rtl"] .check-list li {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .check-list li::before {
  left: auto;
  right: 0;
}

.qr-card {
  margin: 0;
  text-align: center;
}

.qr-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qr-card figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--white);
}

.site-footer img {
  width: 140px;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 170px;
    height: 56px;
  }

  .brand img {
    width: 170px;
  }

  .brand-name {
    font-size: 30px;
  }

  .nav,
  .language-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 176px;
  }

  .quick-stats,
  .product-grid,
  .process-list,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

  .quick-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-card {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .qr-card {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 690px;
  }

  .hero-content {
    padding-bottom: 56px;
  }

  .button {
    width: 100%;
  }

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