:root {
  --ink: #18211c;
  --muted: #59675e;
  --line: rgba(34, 48, 39, .14);
  --paper: #fffaf3;
  --sand: #f7f1e8;
  --green: #223027;
  --gold: #b98143;
  --gold-soft: rgba(185, 129, 67, .14);
  --shadow: 0 22px 58px rgba(24, 33, 28, .14);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.utility-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 36px;
  padding: 7px clamp(16px, 4vw, 44px);
  background: var(--green);
  color: rgba(255, 250, 243, .86);
  font-size: 13px;
}
.utility-bar a, .text-button { color: white; }
.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 44px);
  background: rgba(255, 250, 243, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand-logo { width: 150px; height: 46px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--green); }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--green); }
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  cursor: pointer;
}
.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  background: var(--gold);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  padding: clamp(34px, 7vw, 78px) clamp(16px, 4vw, 44px) 28px;
  background: linear-gradient(90deg, var(--paper) 0%, #f9f3ea 58%, var(--sand) 100%);
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: .96;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}
h3 { font-size: 22px; line-height: 1.1; }
.hero-copy p:not(.eyebrow) { max-width: 660px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--green);
  cursor: pointer;
  font-weight: 800;
}
.button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.secondary { background: transparent; color: var(--green); }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section { padding: clamp(40px, 7vw, 82px) clamp(16px, 4vw, 44px); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head > div:first-child { max-width: 760px; }

.category-section { background: var(--paper); }
.category-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
}
.category-menu {
  display: grid;
  align-content: start;
  background: var(--green);
  color: white;
}
.category-menu a {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.category-menu span { color: rgba(255, 250, 243, .68); font-size: 13px; }
.category-feature {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
}
.category-feature img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }
.category-feature p:not(.eyebrow) { color: var(--muted); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px clamp(16px, 4vw, 44px);
  background: var(--line);
}
.trust-strip div { min-height: 104px; padding: 18px; background: var(--paper); }
.trust-strip strong { display: block; font-size: 24px; line-height: 1; color: var(--green); }
.trust-strip span { color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
input, select, textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
textarea { resize: vertical; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.product-card img { width: 100%; aspect-ratio: 1.18 / 1; object-fit: cover; background: #ddd; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 14px; }
.tag {
  width: fit-content;
  padding: 5px 8px;
  background: var(--gold-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}
.product-body p { color: var(--muted); font-size: 14px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.price-row strong { font-size: 22px; color: var(--green); }
.price-row s { color: var(--muted); font-size: 14px; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 6px 9px;
  background: var(--gold);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.sale-section { background: var(--paper); }

.calculator-band {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
  background: var(--green);
  color: white;
}
.calculator-copy p:not(.eyebrow) { color: rgba(255,255,255,.72); font-size: 17px; }
.calculator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.2);
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
label input, label select, label textarea { width: 100%; }
.calc-result {
  grid-column: 1 / -1;
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--gold-soft);
}
.calc-result strong { font-size: 32px; line-height: 1; color: var(--green); }
.calc-result small { color: var(--muted); }
.calculator .button { grid-column: 1 / -1; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.info-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
}
.info-grid img { width: 100%; aspect-ratio: 1.3 / 1; object-fit: cover; }
.info-grid h3, .info-grid p { margin-right: 16px; margin-left: 16px; }
.info-grid h3 { margin-top: 16px; }
.info-grid p { color: var(--muted); }

.projects-section { background: var(--green); color: white; }
.projects-section .eyebrow { color: var(--gold); }
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.project-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.question-band {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
  background: var(--paper);
}
.question-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.question-form textarea, .question-form button { grid-column: 1 / -1; }

.about-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: 28px;
}
.about-section > p { color: var(--muted); font-size: 17px; }
.about-benefits {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.about-benefits span { padding: 16px; background: var(--paper); color: var(--green); font-weight: 800; }

.admin-shell { background: #ece7dd; }
.admin-login, .admin-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
}
.admin-login { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-login p { flex: 1 1 360px; margin: 0; color: var(--muted); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.admin-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}
.admin-tabs button.active { background: var(--green); color: white; }
.admin-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.admin-form .wide { grid-column: 1 / -1; }
.admin-list { display: grid; gap: 10px; }
.admin-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
}
.admin-item img { width: 72px; aspect-ratio: 1; object-fit: cover; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 24px;
  padding: 34px clamp(16px, 4vw, 44px);
  background: var(--green);
  color: rgba(255, 250, 243, .78);
}
.site-footer strong, .site-footer a { display: block; color: white; }
.site-footer p { max-width: 300px; margin-bottom: 0; }
.site-footer a { margin-top: 8px; }

.cart-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.cart-drawer[aria-hidden="false"] { pointer-events: auto; }
.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.38);
  opacity: 0;
  transition: opacity .18s ease;
}
.cart-drawer[aria-hidden="false"] .cart-backdrop { opacity: 1; }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 460px);
  height: 100%;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform .18s ease;
}
.cart-drawer[aria-hidden="false"] .cart-panel { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 28px; }
.cart-head button { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.cart-items { overflow: auto; padding: 12px 16px; }
.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img { width: 64px; aspect-ratio: 1; object-fit: cover; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}
.checkout { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
.checkout strong { font-size: 26px; color: var(--green); }
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: 340px;
  padding: 14px 16px;
  background: var(--green);
  color: white;
  box-shadow: var(--shadow);
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .hero, .calculator-band, .category-layout, .category-feature, .question-band, .about-section { grid-template-columns: 1fr; }
  .catalog-grid, .info-grid, .trust-strip, .project-grid, .about-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { display: block; }
  .toolbar { justify-content: start; }
}

@media (max-width: 620px) {
  .utility-bar { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .topbar { gap: 10px; }
  .brand { gap: 8px; }
  .brand-logo { width: 126px; }
  .brand small { display: none; }
  .cart-button span { display: none; }
  .hero { padding-top: 28px; }
  h1 { font-size: 38px; }
  .catalog-grid, .info-grid, .trust-strip, .calculator, .admin-form, .project-grid, .about-benefits, .question-form, .site-footer { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 56px minmax(0, 1fr); }
  .admin-actions { grid-column: 1 / -1; }
}
