:root {
  --color-ink: #1f2526;
  --color-muted: #65706f;
  --color-paper: #f7f4ee;
  --color-surface: #ffffff;
  --color-teal: #17686b;
  --color-teal-deep: #0e494c;
  --color-brass: #a77a36;
  --color-clay: #c26e4f;
  --color-line: #e6dfd3;
  --shadow-soft: 0 24px 60px rgba(35, 38, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--color-ink);
  background: var(--color-paper);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.9);
  border-bottom: 1px solid rgba(230, 223, 211, 0.7);
  backdrop-filter: blur(16px);
  min-height: 76px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.96);
  box-shadow: 0 12px 34px rgba(31, 37, 38, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--color-teal);
  font-weight: 800;
  letter-spacing: 0;
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: var(--color-muted);
  font-size: 14px;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: #ece5d9;
  border-radius: 8px;
}

.lang-button {
  min-width: 42px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--color-muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
}

.lang-button.is-active {
  color: #fff;
  background: var(--color-teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 56px) clamp(32px, 5vw, 64px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.25;
}

.hero-text,
.section-head p,
.about-panel p,
.contact p,
.service-list p,
.product-card p,
.case-card p {
  color: var(--color-muted);
}

.hero-text {
  max-width: 600px;
  margin-bottom: 30px;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
}

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

.button.secondary {
  color: var(--color-teal-deep);
  border: 1px solid var(--color-teal);
}

.hero-visual {
  overflow: hidden;
  min-height: 480px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 4vw, 56px);
  overflow: hidden;
  background: var(--color-line);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.metrics article {
  padding: 26px;
  background: var(--color-surface);
}

.metrics strong {
  display: block;
  color: var(--color-teal);
  font-size: 30px;
  line-height: 1;
}

.metrics span {
  color: var(--color-muted);
}

.section {
  scroll-margin-top: 92px;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 56px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

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

.product-card {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-card em {
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--color-teal);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.product-card em::after {
  content: " ->";
}

.product-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}

.iron .product-icon {
  background: #3d474b;
}

.ceramic .product-icon {
  background: #17686b;
}

.resin .product-icon {
  background: #8f6f44;
}

.electronic .product-icon {
  background: #4a6f83;
}

.glass .product-icon {
  background: #5da4a7;
}

.fabric .product-icon {
  background: #8b655b;
}

.cement .product-icon {
  background: #757b78;
}

.plastic .product-icon {
  background: #c26e4f;
}

.band {
  background: #efe9dd;
}

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

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

.case-card > div:last-child {
  padding: 22px;
}

.case-card span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--color-brass);
  font-size: 13px;
  font-weight: 800;
}

.case-visual {
  height: 220px;
  background-color: #d9d1c2;
  background-position: center;
  background-size: cover;
}

.visual-a {
  background-image:
    linear-gradient(180deg, rgba(31, 37, 38, 0.02), rgba(31, 37, 38, 0.18)),
    url("../images/O1CN01MaITQ52LI0EFJvIpq_!!2474339668-0-cib.220x220.jpg");
}

.visual-b {
  background-color: #d8c4b7;
  background-image:
    linear-gradient(180deg, rgba(31, 37, 38, 0.02), rgba(31, 37, 38, 0.2)),
    url("../images/O1CN01C5dKcJ1tLNdOQk6hh_!!2211791065885-0-cib.220x220.jpg");
}

.visual-c {
  background-color: #d2d6ce;
  background-image:
    linear-gradient(180deg, rgba(31, 37, 38, 0.02), rgba(31, 37, 38, 0.2)),
    url("../images/O1CN01qkW5Vj1blLFnoHnc0_!!2213361323505-0-cib.220x220.jpg");
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.about-panel {
  position: sticky;
  top: 110px;
}

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

.service-list article {
  padding: 26px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  background: var(--color-teal-deep);
  color: #fff;
}

.contact .eyebrow,
.contact p {
  color: #d6c398;
}

.contact-card {
  padding: 30px;
  color: var(--color-ink);
  background: #fff;
  border-radius: 8px;
}

dl {
  margin: 0;
}

.contact-card dl {
  display: grid;
  gap: 6px;
}

dt {
  margin-bottom: 4px;
  color: var(--color-teal);
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--color-muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 56px);
  color: var(--color-muted);
  background: #fff;
}

.product-page {
  background: #f7f4ee;
}

.product-header {
  position: static;
}

.product-list-hero {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 56px) clamp(36px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(247, 244, 238, 0.98) 0%, rgba(247, 244, 238, 0.88) 48%, rgba(247, 244, 238, 0.18) 100%),
    url("../images/hero-crafts.png") center / cover;
}

.product-list-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
}

.product-list-hero p:last-child {
  max-width: 680px;
  color: var(--color-muted);
  font-size: 18px;
}

.product-toolbar {
  display: flex;
  gap: 10px;
  padding: 18px clamp(20px, 4vw, 56px);
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  scrollbar-width: none;
}

.product-toolbar::-webkit-scrollbar {
  display: none;
}

.product-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: var(--color-muted);
  white-space: nowrap;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-weight: 800;
}

.product-toolbar a.is-active {
  color: #fff;
  background: var(--color-teal);
  border-color: var(--color-teal);
}

.product-list-section {
  padding: clamp(42px, 6vw, 72px) clamp(20px, 4vw, 56px);
}

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

.listing-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 8px;
}

.listing-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #efe9dd;
  object-fit: cover;
}

.listing-card div {
  padding: 18px;
}

.listing-card span {
  color: var(--color-brass);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.listing-card h2 {
  margin: 8px 0 8px;
  font-size: 20px;
}

.listing-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 360px;
  }

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

  .case-grid,
  .metrics,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .brand {
    min-width: 0;
  }

  .brand strong {
    max-width: 220px;
    font-size: 13px;
  }

  h1 {
    font-size: 38px;
  }

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

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

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