:root {
  --color-bg: #f4f3ed;
  --color-surface: #fffef9;
  --color-ink: #171c1a;
  --color-muted: #5d6662;
  --color-line: #cfd4cf;
  --color-accent: #0f5b45;
  --color-focus: #0f5b45;
  --color-accent-soft: #dce9e3;
  --color-dark: #1f2b27;
  --max-width: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --radius: 2px;
  --shadow: 0 18px 42px rgba(23, 28, 26, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

button,
input { font: inherit; }

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

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

button,
input { min-height: 44px; }

button { color: inherit; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--color-ink);
  color: white;
}

.section-shell {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--color-line);
  background: rgba(244, 243, 237, 0.96);
  backdrop-filter: blur(16px);
}

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

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--color-accent);
  color: white;
  font-weight: 800;
}

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

.brand strong { font-size: 18px; line-height: 1.2; }

.brand small {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 14px;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }

.site-nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
}

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

.menu-toggle {
  display: none;
  width: 48px;
  border: 1px solid var(--color-line);
  background: transparent;
}

.menu-toggle span[aria-hidden="true"] {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  min-height: calc(88vh - 82px);
  border-bottom: 1px solid var(--color-line);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(72px, 10vw, 150px);
  padding-right: clamp(24px, 6vw, 96px);
}

.eyebrow,
.section-index {
  margin: 0 0 20px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.hero h1 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero__lead {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--color-muted);
  font-size: clamp(18px, 1.7vw, 24px);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 24px;
  border: 1px solid var(--color-accent);
  font-weight: 700;
}

.button--primary { background: var(--color-accent); color: white; }

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

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

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 34px;
  overflow: hidden;
  background: var(--color-dark);
  color: white;
}

.hero__number {
  position: relative;
  z-index: 2;
  font-size: clamp(82px, 12vw, 170px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(255, 255, 255, 0.32) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotate(-8deg) scale(1.3);
}

.hero__visual p {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.about,
.products,
.contact { padding-block: clamp(86px, 10vw, 150px); }

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(44px, 8vw, 130px);
  border-bottom: 1px solid var(--color-line);
}

.section-heading h2 {
  max-width: 12em;
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.about__body { max-width: 760px; }

.about__body p { margin: 0; font-size: 20px; }

.about__body p + p { margin-top: 24px; color: var(--color-muted); }

.products { border-bottom: 1px solid var(--color-line); }

.section-heading--products {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.tax-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 800;
}

.catalog-controls {
  margin-top: 54px;
  padding: 24px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.catalog-controls label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }

#product-search {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid #aeb7b2;
  border-radius: 0;
  background: white;
  color: var(--color-ink);
  font-size: 18px;
}

.category-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.category-filters button {
  padding: 8px 16px;
  border: 1px solid var(--color-line);
  background: transparent;
  cursor: pointer;
}

.category-filters button[aria-pressed="true"] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: white;
}

.catalog-status { margin: 18px 0 0; color: var(--color-muted); font-size: 15px; }

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.product-card__tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }

.product-card__tags span {
  padding: 3px 8px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.product-card h3 { margin: 18px 0 0; overflow-wrap: anywhere; font-size: 24px; line-height: 1.25; }

.product-card__aliases { min-height: 27px; margin: 6px 0 0; color: var(--color-muted); font-size: 14px; }

.product-card__structure {
  display: grid;
  min-height: 230px;
  margin-top: 18px;
  place-items: center;
  border-block: 1px solid #e4e6e2;
  background: white;
}

.product-card__structure img { width: 100%; height: 230px; object-fit: contain; }

.product-card__missing { margin: 0; color: var(--color-muted); font-size: 16px; }

.product-card__prices { flex: 1; padding-top: 18px; }

.price-group + .price-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--color-line); }

.price-group h4 { margin: 0 0 8px; color: var(--color-accent); font-size: 15px; }

.price-group dl { margin: 0; }

.price-group dl div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }

.price-group dt { color: var(--color-muted); }

.price-group dd { margin: 0; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.product-card__inquiry { margin: 0; color: var(--color-accent); font-size: 18px; font-weight: 800; }

.product-card__tax {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.no-results { margin: 32px 0; padding: 28px; border: 1px dashed #9da7a2; text-align: center; }

.price-note { margin: 34px 0 0; color: var(--color-muted); font-size: 15px; }

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(44px, 8vw, 130px);
}

.contact__grid { display: grid; gap: 34px; }

.contact__primary { display: grid; gap: 10px; }

.contact__primary p { margin: 0 0 8px; color: var(--color-muted); }

.contact__primary a {
  width: fit-content;
  color: var(--color-accent);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 750;
  overflow-wrap: anywhere;
}

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

.contact address {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  font-style: normal;
}

.contact address div {
  padding: 22px;
  border: 1px solid var(--color-line);
  background: var(--color-surface);
}

.contact address p { margin: 8px 0 0; color: var(--color-muted); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: start;
  gap: 30px;
  padding-block: 42px;
  border-top: 1px solid var(--color-line);
}

.site-footer > div:first-child strong,
.site-footer > div:first-child span { display: block; }

.site-footer > div:first-child span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 14px;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.site-footer__entities { display: grid; gap: 4px; color: var(--color-muted); font-size: 14px; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }

.site-footer small { grid-column: 1 / -1; color: var(--color-muted); }

@media (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr 0.62fr; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 74px; }

  body { font-size: 16px; }

  .site-header { min-height: 70px; }

  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: none;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--color-line);
    background: var(--color-bg);
  }

  .site-nav.is-open { display: grid; }

  .site-nav a { border-bottom: 1px solid var(--color-line); }

  .hero { grid-template-columns: 1fr; min-height: 0; padding-inline: 0; }

  .hero__copy { padding: 70px var(--gutter); }

  .hero h1 { font-size: clamp(40px, 13vw, 58px); }

  .hero__visual { min-height: 300px; padding: 24px var(--gutter); }

  .about,
  .contact { grid-template-columns: 1fr; gap: 34px; }

  .about__body p { font-size: 18px; }

  .section-heading--products { align-items: flex-start; flex-direction: column; }

  .catalog-controls { padding: 18px; }

  .category-filters { gap: 8px; }

  .category-filters button { flex: 1 1 calc(50% - 8px); }

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

  .product-card { padding: 20px; }

  .contact address { grid-template-columns: 1fr; }

  .site-footer { grid-template-columns: 1fr; }

  .site-footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
