:root {
  --navy: #10253d;
  --navy-2: #18395a;
  --ink: #17212b;
  --muted: #617181;
  --line: #d9e1e8;
  --paper: #f7f9fb;
  --white: #ffffff;
  --gold: #c8a24a;
  --gold-soft: #f5ead0;
  --teal: #2a817b;
  --danger: #a64040;
  --shadow: 0 18px 50px rgba(16, 37, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.58;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: "Tahoma", "Arial", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 74px;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
  font-weight: 800;
  color: var(--navy);
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  line-height: 1.15;
  min-width: 0;
}

.brand-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav a {
  min-height: 42px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #405063;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  color: var(--navy);
  background: #eef3f7;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.language-switch button {
  min-width: 34px;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.language-switch button.active {
  color: #fff;
  background: var(--navy);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--navy);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
}

.button.primary {
  color: #fff;
  background: var(--navy);
}

.button.gold {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold);
}

.button.ghost {
  color: var(--navy);
  background: transparent;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 74px);
  color: #fff;
  background:
    radial-gradient(circle at 82% 38%, rgba(200, 162, 74, 0.18), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
}

.hero-inner {
  align-items: center;
  min-height: calc(100vh - 74px);
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 56px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 46px;
}

.hero-copy {
  max-width: 730px;
  min-width: 0;
}

.hero-visual {
  display: grid;
  place-items: center;
  align-self: center;
  min-width: 0;
}

.hero-visual img {
  width: min(100%, 560px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}
}

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

.hero .eyebrow {
  color: #f1cf7b;
}

.hero .button.ghost,
.cta-band .button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

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

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

html[dir="rtl"] h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.14;
}

h2 {
  margin: 0;
  max-width: 780px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.24;
}

.hero-text {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

.hero-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-stat span {
  display: block;
  color: #f1cf7b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: #fff;
}

.section.dark {
  color: #fff;
  background: var(--navy);
}

.section.dark h2,
.section.dark h3 {
  color: #fff;
}

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

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 34px;
}

.section-head.center {
  justify-items: center;
  text-align: center;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section.dark .lead {
  color: rgba(255, 255, 255, 0.76);
}

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

.feature-card,
.product-card,
.news-card,
.region-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--gold-soft);
  font-weight: 900;
}

.feature-card p,
.product-card p,
.news-card p,
.region-card p,
.info-card p {
  color: var(--muted);
}

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

.product-card {
  display: grid;
  overflow: hidden;
}

.product-card figure {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1 / 0.78;
  margin: 0;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tag-list li,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #85601c;
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
}

.page-hero {
  padding: 78px 0 54px;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(16, 37, 61, 0.96), rgba(24, 57, 90, 0.88)),
    url("../factory/ms-metallic-yarn-workshop.jpg") center / cover;
}

.page-hero h1,
.page-hero h2 {
  color: #fff;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.82);
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.search-input,
.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 100%;
  overflow: hidden;
}

.category-pills button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.category-pills button.active {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1.1fr);
  gap: 36px;
  align-items: start;
}

.gallery-main {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb-row button {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  padding: 8px;
}

.thumb-row button.active {
  border-color: var(--gold);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 32%;
  color: var(--navy);
  background: #f1f5f8;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.detail-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: 38px;
  align-items: center;
}

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

.media-grid img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 8px;
}

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

.points li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

html[dir="rtl"] .points li {
  padding: 14px 42px 14px 16px;
}

.points li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}

html[dir="rtl"] .points li::before {
  right: 16px;
  left: auto;
}

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

.region-card {
  padding: 22px;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  counter-reset: step;
}

.process li {
  position: relative;
  min-height: 118px;
  padding: 46px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  list-style: none;
  font-weight: 800;
}

.process li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
}

.news-card {
  overflow: hidden;
}

.news-card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.news-body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.date {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(340px, 1.22fr);
  gap: 28px;
  align-items: start;
  min-width: 0;
}

.info-stack {
  display: grid;
  gap: 14px;
}

.info-card {
  padding: 20px;
  min-width: 0;
  overflow: hidden;
}

.info-card strong {
  display: block;
  color: var(--navy);
  margin-bottom: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-card a,
.info-card p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inquiry-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-message {
  min-height: 24px;
  color: var(--teal);
  font-weight: 800;
}

.form-message.error {
  color: var(--danger);
}

.map-box {
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(16, 37, 61, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(16, 37, 61, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
  text-align: center;
  padding: 24px;
}

.cta-band {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #1e4c68);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.cta-inner h2 {
  color: #fff;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #0b1b2d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr 0.7fr;
  gap: 28px;
  padding: 50px 0;
}

.footer-grid h3 {
  color: #fff;
  font-size: 16px;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  background: #1f9d63;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  font-weight: 900;
}

html[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 18px;
}

.admin-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.code-path {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--navy);
  background: #eef3f7;
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}

.not-found {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  body.menu-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .header-actions {
    grid-column: 2;
  }

  .menu-toggle {
    display: inline-block;
  }

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

  .hero-inner {
    min-height: auto;
    padding-bottom: 62px;
  }

  .hero-visual {
    justify-items: start;
  }

  html[dir="rtl"] .hero-visual {
    justify-items: end;
  }

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

  .split,
  .product-detail,
  .contact-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 700px) {
  .header-inner {
    display: flex;
    position: relative;
    direction: ltr;
    justify-content: space-between;
    width: min(100% - 28px, 1200px);
    min-height: 68px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    max-width: 48px;
  }

  .brand-text {
    display: none;
  }

  .brand-text span {
    font-size: 13px;
  }

  .brand-text small {
    display: none;
  }

  .language-switch button {
    min-width: 24px;
    padding-inline: 4px;
    font-size: 12px;
  }

  .header-actions {
    gap: 6px;
    flex: 0 0 auto;
    max-width: calc(100vw - 76px);
  }

  .menu-toggle {
    position: absolute;
    top: 13px;
    right: 0;
    order: 2;
    flex: 0 0 42px;
  }

  .language-switch {
    position: absolute;
    top: 13px;
    left: 58px;
    right: auto;
    order: 1;
    flex: 0 0 auto;
  }

  html[dir="rtl"] .menu-toggle {
    right: 0;
    left: auto;
  }

  html[dir="rtl"] .language-switch {
    left: 58px;
    right: auto;
  }

  .nav {
    inset-block-start: 68px;
  }

  .container,
  .hero-inner {
    width: min(100% - 28px, 1200px);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 52px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: 34px;
    max-width: 100%;
  }

  html[dir="rtl"] h1 {
    font-size: 24px;
  }

  .page-hero h1 {
    font-size: 32px;
    line-height: 1.16;
  }

  .hero-text,
  .lead {
    font-size: 16px;
  }

  .hero-stats,
  .feature-grid,
  .product-grid,
  .region-grid,
  .news-grid,
  .footer-grid,
  .form-row,
  .detail-list,
  .filters {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    width: 100%;
    max-height: 330px;
  }

  .hero-copy,
  .page-hero .container {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges li,
  .hero-stat {
    text-align: center;
  }

  .filters {
    align-items: stretch;
  }

  .category-pills button {
    max-width: calc(100vw - 42px);
  }

  .info-card strong,
  .info-card a,
  .info-card p {
    word-break: break-all;
  }

  .category-pills {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-pills button {
    width: 100%;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero {
    padding: 54px 0 42px;
  }

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

  .process {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .cta-actions,
  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .footer-bottom {
    display: grid;
  }

  .floating-whatsapp {
    min-height: 48px;
    min-width: 48px;
    padding: 0 13px;
  }
}
