:root {
  --ink: #172029;
  --muted: #64717f;
  --line: #dbe3ea;
  --paper: #f6f8fb;
  --white: #ffffff;
  --blue: #176bb6;
  --green: #27a56b;
  --orange: #f26922;
  --teal: #dff5ef;
  --shadow: 0 20px 50px rgba(23, 32, 41, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 205px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

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

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #324252;
  font-size: 14px;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

select,
.wa-chip,
.button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
}

select {
  max-width: 132px;
  padding: 0 11px;
  background: var(--white);
  color: var(--ink);
}

.wa-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 56px) 38px;
  background:
    linear-gradient(112deg, rgba(223, 245, 239, 0.92), rgba(246, 248, 251, 0.8) 46%, rgba(255, 255, 255, 1)),
    linear-gradient(180deg, rgba(242, 105, 34, 0.08), transparent);
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.hero-text {
  max-width: 650px;
  margin: 24px 0 0;
  color: #3d4c5a;
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.wa-chip:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 12px 24px rgba(242, 105, 34, 0.22);
}

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

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

.hero-stats div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(219, 227, 234, 0.8);
  border-radius: 8px;
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  position: relative;
  min-height: 560px;
}

.factory-img {
  width: 82%;
  height: 560px;
  margin-left: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-product-stack {
  position: absolute;
  left: 0;
  bottom: 36px;
  display: grid;
  gap: 12px;
  width: min(250px, 45%);
}

.hero-product-stack img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(23, 32, 41, 0.14);
}

.band {
  background: var(--paper);
}

section:not(.hero) {
  scroll-margin-top: 150px;
  padding: clamp(54px, 7vw, 96px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  max-width: 700px;
  color: var(--muted);
  font-size: 17px;
}

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

.intro-grid article,
.product-card,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intro-grid article {
  padding: 24px;
}

.intro-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--orange);
  font-weight: 900;
}

.intro-grid p,
.product-card p,
.custom p {
  color: var(--muted);
}

.factory-story {
  background: var(--white);
}

.factory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.factory-photo-large,
.factory-proof-grid figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(23, 32, 41, 0.08);
}

.factory-photo-large img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.factory-proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.factory-proof-grid figure {
  display: flex;
  flex-direction: column;
  margin: 0;
}

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

.factory-proof-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.factory-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.factory-capabilities article {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.factory-capabilities strong,
.factory-capabilities span {
  display: block;
}

.factory-capabilities strong {
  font-size: 17px;
}

.factory-capabilities span {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

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

.factory-gallery figure {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(23, 32, 41, 0.07);
}

.factory-gallery img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.factory-gallery .gallery-wide {
  grid-column: span 2;
}

.factory-gallery .gallery-tall {
  grid-column: span 2;
}

.factory-gallery .gallery-tall img {
  object-fit: contain;
  background: #2f6fbd;
}

.factory-gallery .gallery-contain img {
  object-fit: contain;
  background: var(--white);
}

.factory-gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  background: var(--white);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f6f8fa;
  object-fit: cover;
}

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

.product-card h3 {
  font-size: 18px;
}

.product-card p {
  margin: 0 0 14px;
  font-size: 14px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.product-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--teal);
  color: #155340;
  font-size: 12px;
  font-weight: 700;
}

.custom {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 30px;
  align-items: start;
}

.custom-copy p:not(.eyebrow) {
  max-width: 680px;
  font-size: 18px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-list div {
  min-height: 122px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-list strong,
.service-list span {
  display: block;
}

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

.catalog-viewer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.catalog-viewer a {
  display: block;
  max-height: 680px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(23, 32, 41, 0.08);
}

.catalog-viewer img {
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.56fr);
  gap: 24px;
  align-items: stretch;
}

.contact-card {
  padding: clamp(24px, 4vw, 42px);
}

.contact-card p:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
  font-size: 18px;
}

address {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-style: normal;
}

address span {
  color: #d5dee7;
}

footer {
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
}

[dir="rtl"] body {
  text-align: right;
}

[dir="rtl"] .factory-img {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .hero-product-stack {
  right: 0;
  left: auto;
}

@media (max-width: 1080px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

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

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

  .factory-img {
    width: 100%;
    height: 470px;
  }

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

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

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

  .factory-gallery .gallery-wide,
  .factory-gallery .gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .header-actions {
    width: 100%;
  }

  select,
  .wa-chip {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-stats,
  .intro-grid,
  .factory-gallery,
  .service-list,
  .catalog-viewer {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .hero-media {
    min-height: auto;
  }

  .factory-img {
    height: 180px;
  }

  .factory-photo-large img,
  .factory-proof-grid img {
    height: 260px;
  }

  .factory-capabilities {
    grid-template-columns: 1fr;
  }

  .factory-gallery figure {
    min-height: 260px;
  }

  .factory-gallery img {
    min-height: 220px;
  }

  .hero-product-stack {
    display: none;
  }

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

  .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 14px;
  }

  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

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