:root {
  --bg: #ffffff;
  --paper: #f5f6f6;
  --line: #dedede;
  --ink: #1f2326;
  --muted: #687076;
  --soft: #8d969c;
  --accent: #3f6f52;
  --accent-dark: #274b37;
  --shadow: 0 18px 48px rgba(31, 35, 38, 0.1);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

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

.header-main {
  width: min(1280px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  align-items: center;
  gap: 22px;
}

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

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

.site-nav > a,
.nav-group > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: #2d3337;
  font-size: 17px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.nav-group {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 210px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

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

.search {
  width: 210px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.search span {
  color: var(--muted);
  font-size: 18px;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.lang-switch,
.menu-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.lang-switch {
  min-width: 44px;
  height: 38px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 630px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #e9eceb;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 246, 246, 0.96) 0%, rgba(245, 246, 246, 0.82) 42%, rgba(245, 246, 246, 0.28) 100%),
    url("../img/company/company-4.jpg") center / cover no-repeat;
}

.hero-content {
  position: relative;
  padding: 120px 0 86px;
}

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

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

.hero p:not(.eyebrow) {
  max-width: 610px;
  margin: 22px 0 0;
  color: #3d4549;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
}

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

.button.secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button.wide {
  width: 100%;
}

section {
  scroll-margin-top: 96px;
}

.product-band,
.markets-band {
  padding: 78px 0;
  background: var(--paper);
}

.profile-band,
.contact-band {
  padding: 78px 0;
  background: #fff;
}

.strength-band {
  padding: 70px 0;
  background: #2f3437;
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head.compact {
  grid-template-columns: 1fr;
  margin-bottom: 26px;
}

.section-head h2,
.markets-grid h2,
.contact-grid h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head p:last-child,
.contact-grid p,
.contact-grid p {
  margin: 0;
  color: var(--muted);
}

.product-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-panel {
  position: sticky;
  top: 106px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
}

.catalog-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.category-list {
  display: grid;
  gap: 6px;
}

.category-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}

.category-button.child {
  padding-left: 22px;
  font-size: 13px;
}

.category-button.active,
.category-button:hover {
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.product-toolbar {
  min-height: 48px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.product-toolbar select {
  height: 40px;
  min-width: 160px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.product-image {
  aspect-ratio: 1 / 1;
  background: #f0f1f1;
  overflow: hidden;
}

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

.product-info {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.product-info h3 {
  min-height: 66px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.product-price {
  color: var(--accent-dark);
  font-weight: 800;
}

.load-more {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 510px) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

.image-stack img:nth-child(2) {
  height: 310px;
}

.overview-text h3 {
  margin: 0 0 18px;
  font-size: 28px;
}

.overview-text p {
  margin: 0 0 14px;
  color: #41484c;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: #30383c;
  font-size: 13px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.stat {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  background: #2f3437;
}

.stat strong {
  font-size: 30px;
  line-height: 1.1;
}

.stat span {
  color: #d6dddd;
  font-size: 13px;
}

.markets-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.market-bars {
  display: grid;
  gap: 14px;
}

.market-row {
  display: grid;
  grid-template-columns: 150px 1fr 54px;
  align-items: center;
  gap: 14px;
}

.bar-track {
  height: 10px;
  background: #e0e3e2;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
}

.contact-band {
  background: #eef1f0;
}

.contact-details {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px;
}

.contact-details dl,
.modal-specs {
  margin: 0;
}

.contact-details dl div,
.modal-specs div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details dt,
.modal-specs dt {
  color: var(--muted);
}

.contact-details dd,
.modal-specs dd {
  margin: 0;
  font-weight: 700;
}

.contact-details .button {
  margin-top: 22px;
}

.site-footer {
  background: #24282b;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 38px;
  padding: 42px 0;
}

.footer-grid img {
  width: 190px;
  background: #fff;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-grid a,
.footer-grid p {
  color: #d7dcde;
}

.copyright {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8c0c4;
  text-align: center;
  font-size: 13px;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(20, 24, 26, 0.72);
}

.product-modal.open {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(240px, 390px) minmax(0, 1fr);
  gap: 28px;
  background: #fff;
  padding: 28px;
}

.modal-panel > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.modal-panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.25;
}

.detail-main {
  background: #fff;
}

.detail-loading {
  padding: 80px 0;
}

.detail-hero-section {
  padding: 58px 0 72px;
  background: var(--paper);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, 520px) minmax(0, 1fr);
  gap: 46px;
  align-items: start;
}

.detail-gallery {
  display: grid;
  gap: 12px;
}

.detail-main-image {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

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

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.detail-thumbs button {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.detail-thumbs button.active {
  border-color: var(--accent-dark);
}

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

.detail-summary h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
}

.detail-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-weight: 800;
}

.summary-list {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--line);
}

.summary-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list dt,
.detail-attr dt {
  color: var(--muted);
}

.summary-list dd,
.detail-attr dd {
  margin: 0;
  font-weight: 700;
}

.detail-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.detail-section {
  padding: 64px 0;
  background: #fff;
}

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

.detail-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 40px;
  align-items: start;
}

.detail-section h2,
.detail-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
}

.detail-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.detail-attrs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

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

.detail-attr {
  min-height: 74px;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.detail-attr dt {
  margin-bottom: 6px;
  font-size: 13px;
}

.detail-card table {
  width: 100%;
  border-collapse: collapse;
}

.detail-card th,
.detail-card td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.detail-card th {
  color: var(--muted);
  font-weight: 700;
}

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

.detail-image-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

@media (max-width: 1080px) {
  .header-main {
    grid-template-columns: 200px auto 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-dropdown {
    position: static;
    display: grid;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px 20px;
  }

  .header-tools {
    justify-content: end;
  }

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

@media (max-width: 860px) {
  .header-main {
    width: min(100% - 20px, 1280px);
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand img {
    width: 180px;
  }

  .header-tools {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding-bottom: 10px;
  }

  .search {
    width: 100%;
  }

  .site-nav {
    top: 126px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(245, 246, 246, 0.96) 0%, rgba(245, 246, 246, 0.88) 54%, rgba(245, 246, 246, 0.52) 100%),
      url("../img/company/company-4.jpg") center / cover no-repeat;
  }

  .section-head,
  .product-layout,
  .overview-grid,
  .markets-grid,
  .contact-grid,
  .detail-hero-grid,
  .detail-two-col,
  .modal-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .catalog-panel {
    position: static;
  }

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

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

  .image-stack img,
  .image-stack img:nth-child(2) {
    height: 260px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, var(--max));
  }

  .hero-content {
    padding: 86px 0 58px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .product-band,
  .profile-band,
  .strength-band,
  .markets-band,
  .contact-band {
    padding: 52px 0;
  }

  .category-list,
  .product-grid,
  .stats-grid,
  .detail-attrs,
  .detail-attrs.full,
  .detail-image-grid {
    grid-template-columns: 1fr;
  }

  .market-row {
    grid-template-columns: 1fr 48px;
  }

  .market-row .bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .contact-details dl div,
  .modal-specs div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
