:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --bg-panel: #eef5f7;
  --text: #17212f;
  --muted: #637083;
  --line: #dce5ee;
  --accent: #0f8d96;
  --accent-strong: #075c8f;
  --accent-warm: #b78228;
  --surface: #ffffff;
  --shadow: 0 18px 50px rgba(17, 33, 48, 0.11);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(220, 229, 238, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
  color: #334257;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus {
  color: var(--accent-strong);
  border-color: var(--accent);
}

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

.language-select {
  min-width: 120px;
  height: 42px;
  padding: 0 34px 0 12px;
  color: #27364a;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--accent-strong);
  box-shadow: 0 10px 20px rgba(7, 92, 143, 0.18);
}

.btn-secondary {
  color: var(--accent-strong);
  background: #fff;
  border-color: var(--line);
}

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

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #243142;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: min(720px, calc(100vh - 76px));
  padding: 82px max(5vw, calc((100vw - var(--container)) / 2)) 56px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.9) 34%, rgba(255, 255, 255, 0.35) 64%, rgba(255, 255, 255, 0) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.page-hero p,
.section-head p,
.quality-split p,
.global-panel p,
.two-column p,
.lab-note p {
  color: var(--muted);
  font-size: 17px;
}

.hero p {
  max-width: 590px;
  margin: 24px 0 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  min-height: 100%;
}

.hero-media::after {
  display: none;
}

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

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  max-width: 610px;
  margin: 34px 0 18px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(37, 53, 70, 0.1);
}

.hero-search input,
.filters input,
.rfq-form input,
.rfq-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fff;
}

.hero-search input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-color: transparent;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-links a {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 720;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5vw 34px;
}

.stat {
  padding: 26px;
  background: var(--bg-soft);
  border-top: 3px solid var(--accent);
}

.stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 82px 5vw;
}

.section-muted {
  max-width: none;
  background: var(--bg-soft);
}

.section-muted > * {
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
}

.section-head {
  max-width: 740px;
  margin-bottom: 32px;
}

.section-head h2,
.quality-split h2,
.global-panel h2,
.two-column h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.category-card,
.product-card,
.quality-card,
.lab-note,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-card {
  padding: 24px;
}

.category-card h3,
.product-card h3,
.process-list h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
}

.category-card p,
.product-card p,
.quality-card p,
.process-list p,
.contact-card p,
.form-note {
  color: var(--muted);
}

.category-card a {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 760;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 390px;
}

.product-card h3,
.product-card .product-meta,
.product-card p,
.product-card .product-actions {
  margin-right: 24px;
  margin-left: 24px;
}

.product-card h3 {
  margin-top: 22px;
}

.product-image {
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #eef5f7;
  border-bottom: 1px solid var(--line);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-missing {
  display: grid;
  place-items: center;
  padding: 20px;
  color: #506174;
  text-align: center;
}

.product-image-missing span {
  display: inline-flex;
  max-width: 170px;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px dashed #aebdca;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  font-weight: 750;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.product-meta span {
  padding: 5px 8px;
  color: #34445a;
  background: #edf4f8;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 720;
}

.product-card .product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  padding-bottom: 24px;
}

.section-action {
  margin-top: 30px;
  text-align: center;
}

.quality-split,
.global-panel,
.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  gap: 42px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-list span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-weight: 800;
}

.process-list p {
  grid-column: 2;
  margin: 0;
}

.global-panel {
  max-width: var(--container);
  padding: 40px;
  background: linear-gradient(135deg, #102236, #0a5e76);
  border-radius: var(--radius);
  color: #fff;
}

.global-panel p {
  color: rgba(255, 255, 255, 0.76);
}

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

.market-list span {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-weight: 700;
}

.page-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 74px 5vw 40px;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 66px);
}

.page-hero p {
  max-width: 760px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: start;
  padding-top: 28px;
}

.filters {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters label,
.rfq-form label {
  display: grid;
  gap: 8px;
  color: #2c3d52;
  font-size: 14px;
  font-weight: 730;
}

.filters input,
.rfq-form input,
.rfq-form textarea {
  min-height: 44px;
  padding: 10px 12px;
}

.filter-group {
  display: grid;
  gap: 12px;
}

.filter-group button {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 10px 12px;
  text-align: left;
  color: #314257;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}

.filter-group button.active {
  color: #fff;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.product-detail {
  max-width: 1080px;
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
  padding: 34px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.detail-hero-image {
  overflow: hidden;
  min-height: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-image.product-image-missing {
  min-height: 230px;
}

.detail-header h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
}

.detail-header p {
  max-width: 720px;
  color: var(--muted);
}

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

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

.spec-table th {
  width: 210px;
  color: #334257;
  background: #f6f9fc;
}

.application-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.application-list span {
  padding: 9px 12px;
  background: var(--bg-panel);
  border-radius: 5px;
  color: #26374b;
  font-weight: 700;
}

.two-column {
  padding-top: 36px;
}

.lab-note {
  padding: 28px;
  border-left: 4px solid var(--accent-warm);
}

.quality-grid {
  max-width: var(--container);
}

.quality-card {
  min-height: 150px;
  padding: 24px;
}

.quality-card strong {
  color: var(--accent-strong);
  font-size: 22px;
}

.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.rfq-form .full,
.rfq-form button,
.rfq-form .form-note {
  grid-column: 1 / -1;
}

.contact-card {
  padding: 28px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 1.4fr;
  gap: 34px;
  padding: 42px 5vw;
  color: rgba(255, 255, 255, 0.82);
  background: #111b28;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
  font-size: 14px;
}

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

[dir="rtl"] .nav,
[dir="rtl"] .header-actions,
[dir="rtl"] .hero-links,
[dir="rtl"] .product-meta,
[dir="rtl"] .product-card .product-actions,
[dir="rtl"] .application-list,
[dir="rtl"] .catalog-toolbar {
  direction: rtl;
}

[dir="rtl"] .filter-group button,
[dir="rtl"] .spec-table th,
[dir="rtl"] .spec-table td {
  text-align: right;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .nav.open,
  .header-actions.open {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .nav.open {
    flex-wrap: wrap;
  }

  .quality-split,
  .global-panel,
  .two-column,
  .contact-layout,
  .catalog-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    min-height: 100%;
  }

  .hero-media img {
    min-height: 100%;
  }

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

  .filters {
    position: static;
  }
}

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

  .brand {
    font-size: 16px;
  }

  .hero,
  .section,
  .page-hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .hero-search,
  .rfq-form,
  .detail-header,
  .stats-band,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .quality-grid,
  .market-list {
    grid-template-columns: 1fr;
  }

  .stats-band {
    padding-right: 20px;
    padding-left: 20px;
  }

  .product-card .product-actions,
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

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