:root {
  --paper: #f6f0e6;
  --paper-soft: #fbf8f2;
  --ivory: #fffdf8;
  --wood: #c7a77a;
  --wood-soft: #e6d4b8;
  --stone: #d5d0c7;
  --warm-gray: #746f66;
  --ink: #252722;
  --deep: #3e463b;
  --sage: #788672;
  --line: #e3d8c9;
  --shadow: 0 18px 44px rgba(55, 49, 39, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--warm-gray); line-height: 1.75; margin: 0 0 18px; }
h1, h2, h3 { margin: 0 0 16px; line-height: 1.08; letter-spacing: 0; }
h1 { font-size: clamp(42px, 6vw, 78px); max-width: 980px; }
h2 { font-size: clamp(28px, 3.8vw, 48px); }
h3 { font-size: 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(251, 248, 242, 0.94);
  border-bottom: 1px solid rgba(227, 216, 201, 0.8);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--ivory);
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { margin-top: 3px; color: var(--warm-gray); font-size: 12px; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-size: 14px; font-weight: 700; }
.nav a { color: #4e534b; }
.nav a.active, .nav a:hover { color: var(--deep); box-shadow: inset 0 -2px 0 var(--wood); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--ivory); border-radius: 8px; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--deep); }

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: clamp(40px, 7vw, 92px);
  overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37, 39, 34, 0.76), rgba(37, 39, 34, 0.42) 46%, rgba(37, 39, 34, 0.08));
}
.hero-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  color: var(--ivory);
}
.hero-panel p { color: rgba(255, 253, 248, 0.86); font-size: 18px; }
.eyebrow {
  color: #a87641;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero .eyebrow, .cta .eyebrow { color: #ead4ad; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid var(--deep);
  border-radius: 999px;
  font-weight: 800;
}
.button.primary { background: var(--deep); color: var(--ivory); }
.button.secondary { background: rgba(255, 253, 248, 0.16); color: var(--ivory); border-color: rgba(255, 253, 248, 0.72); }
.button.full { width: 100%; }
.text-link { display: inline-flex; margin-top: 10px; color: var(--deep); font-weight: 800; box-shadow: inset 0 -2px 0 var(--wood); }

.section { max-width: 1220px; margin: 0 auto; padding: clamp(64px, 9vw, 116px) clamp(18px, 5vw, 72px); }
.section.warm { max-width: none; background: #efe4d3; }
.section.warm > * { max-width: 1220px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 840px; margin-bottom: 34px; }
.section-head p { max-width: 780px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card, .feature-card {
  display: block;
  padding: 26px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.card p, .feature-card p { margin-bottom: 0; }
.card-code { display: inline-flex; margin-bottom: 26px; color: #986b37; font-weight: 800; }
.pill-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-grid a, .pill-grid span {
  padding: 15px 18px;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  font-weight: 800;
}
.split { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 84px); align-items: center; }
.cta {
  margin: 0;
  padding: clamp(64px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--deep);
  color: var(--ivory);
  text-align: center;
}
.cta h2 { max-width: 920px; margin-left: auto; margin-right: auto; }
.cta p { color: rgba(255, 253, 248, 0.78); }
.cta .button { margin-top: 12px; background: var(--ivory); color: var(--deep); border-color: var(--ivory); }

.page-hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(70px, 10vw, 126px) clamp(18px, 5vw, 72px) clamp(44px, 6vw, 78px);
}
.page-hero p { max-width: 780px; font-size: 18px; }
.page-hero.with-image { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 40px; align-items: center; }
.page-hero.with-image img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.quiet { color: var(--deep); font-weight: 700; }
.product-list, .application-grid { display: grid; gap: 18px; }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.product-media {
  position: relative;
  min-height: 220px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f7eddc, #fffaf1);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 26px;
  text-align: center;
  color: var(--deep);
}
.product-placeholder strong,
.product-placeholder span {
  display: block;
}
.product-placeholder strong { margin-bottom: 8px; font-size: 20px; }
.product-placeholder span { color: var(--warm-gray); }
.product-media:not(:has(img)) .product-placeholder,
.product-media.is-missing .product-placeholder {
  display: grid;
}
.product-media.is-missing img { display: none; }
.product-body { padding: 26px; }
.product-category {
  margin-bottom: 10px;
  color: #986b37;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-specs {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.product-specs div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
}
.product-specs dt {
  color: var(--deep);
  font-weight: 800;
}
.product-specs dd {
  margin: 0;
  color: var(--warm-gray);
}
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tag-group span {
  padding: 8px 10px;
  border-radius: 999px;
  background: #efe4d3;
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
}
.tag-group.muted span {
  background: var(--paper-soft);
  color: var(--warm-gray);
  border: 1px solid var(--line);
}
.application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.application-grid .feature-card:last-child { grid-column: 1 / -1; }
.soft-list, .check-list { margin: 18px 0 0; padding-left: 20px; color: var(--warm-gray); line-height: 1.8; }
.table-wrap { overflow-x: auto; background: var(--ivory); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--deep); background: #f1e6d6; }
tr:last-child td { border-bottom: 0; }
.material-list { display: grid; gap: 12px; }
.material-list div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px; background: var(--ivory); border: 1px solid var(--line); border-radius: 16px; }
.material-list span { color: var(--warm-gray); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps div { padding: 22px; background: var(--ivory); border: 1px solid var(--line); border-radius: 18px; }
.steps span { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 18px; border-radius: 50%; background: var(--deep); color: var(--ivory); font-weight: 800; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr); gap: 24px; align-items: start; }
.contact-form { display: grid; gap: 16px; padding: 26px; background: var(--ivory); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; color: var(--deep); }
input, textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-soft);
  font: inherit;
}
textarea { resize: vertical; }
.form-note { margin: 0; font-size: 13px; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(320px, 1.4fr) minmax(220px, 1fr);
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: #252722;
  color: rgba(255, 253, 248, 0.78);
}
.site-footer strong, .site-footer span, .footer-mail a { display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; }
.footer-mail { display: grid; gap: 8px; justify-content: end; text-align: right; }

@media (max-width: 1050px) {
  .card-grid, .card-grid.four, .card-grid.five, .steps, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero.with-image, .split, .contact-layout { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav, .footer-mail { justify-content: start; text-align: left; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .brand small { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--paper-soft);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 620px; padding: 56px 18px; }
  .hero::after { background: linear-gradient(90deg, rgba(37, 39, 34, 0.82), rgba(37, 39, 34, 0.52)); }
  .card-grid, .card-grid.four, .card-grid.five, .application-grid, .steps, .products-grid { grid-template-columns: 1fr; }
  .application-grid .feature-card:last-child { grid-column: auto; }
  .material-list div { grid-template-columns: 1fr; }
  .product-specs div { grid-template-columns: 1fr; gap: 4px; }
}
