:root {
  --green: #00a046;
  --green-dark: #00863b;
  --green-soft: #e6f6ec;
  --yellow: #f5c518;
  --text: #221f1f;
  --muted: #797878;
  --line: #e9e9e9;
  --bg: #f4f4f4;
  --white: #fff;
  --shadow: 0 1px 4px rgba(0,0,0,.08);
  --radius: 8px;
  --header: 72px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

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

/* top bar */
.topbar {
  background: #f9f9f9;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.topbar-left, .topbar-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: var(--green); }

/* header */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow);
}
.header .wrap {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: var(--header);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 8px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 20px;
}
.btn-catalog {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 8px;
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}
.btn-catalog:hover { background: var(--green-dark); }
.search {
  display: flex;
  height: 44px;
}
.search input {
  flex: 1;
  border: 2px solid var(--green);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 14px;
  outline: none;
}
.search button {
  background: var(--green);
  color: #fff;
  border: 0;
  width: 52px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}
.header-actions { display: flex; gap: 8px; }
.icon-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 64px; height: 52px; border-radius: 8px; color: var(--text); font-size: 12px; gap: 2px;
}
.icon-btn:hover { background: var(--green-soft); color: var(--green-dark); }
.icon-btn svg { width: 22px; height: 22px; }

.subnav {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.subnav .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}
.chip {
  white-space: nowrap;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
}
.chip:hover, .chip.active { background: var(--green-soft); color: var(--green-dark); }

.page { padding: 20px 0 48px; min-height: calc(100vh - 280px); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.cat-menu {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
}
.cat-menu a {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 14px;
}
.cat-menu a:hover { background: var(--green-soft); color: var(--green-dark); }
.hero-banner {
  background: linear-gradient(120deg, #0b7a32, #00a046 55%, #1ec25b);
  border-radius: 12px;
  color: #fff;
  padding: 32px;
  min-height: 280px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}
.hero-banner img {
  position: absolute; right: 0; bottom: 0; height: 100%; width: 48%;
  object-fit: cover; opacity: .28;
}
.hero-banner h1 { margin: 0 0 10px; font-size: 32px; max-width: 640px; position: relative; }
.hero-banner p { margin: 0 0 18px; max-width: 560px; opacity: .95; position: relative; }
.stats { display: flex; gap: 24px; position: relative; flex-wrap: wrap; }
.stats b { display: block; font-size: 22px; }
.stats span { font-size: 13px; opacity: .9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 0; cursor: pointer; font-weight: 600;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-yellow { background: var(--yellow); color: #221f1f; }
.btn-ghost { background: transparent; border: 1px solid #dcdcdc; }
.btn-wide { width: 100%; }

.section-title {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 8px 0 14px;
}
.section-title h2 { margin: 0; font-size: 22px; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.card-img {
  height: 200px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 12px;
}
.card-img img { max-height: 176px; object-fit: contain; }
.card-body { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { color: var(--muted); font-size: 12px; }
.card-title { font-size: 14px; line-height: 1.35; min-height: 38px; }
.card-title:hover { color: var(--green); }
.price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 800; font-size: 18px; }
.buy {
  background: var(--green); color: #fff; border: 0; width: 36px; height: 36px;
  border-radius: 8px; cursor: pointer; font-size: 18px;
}

.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.crumbs a:hover { color: var(--green); }

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}
.filters {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
  align-self: start;
}
.filters h3 { margin: 0 0 12px; font-size: 16px; }
.filters label { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 14px; cursor: pointer; }

.product {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.gallery-main {
  background: #fafafa;
  border-radius: 8px;
  min-height: 380px;
  display: grid;
  place-items: center;
}
.gallery-main img { max-height: 420px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs img {
  width: 64px; height: 64px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); border-radius: 6px; cursor: pointer; padding: 4px;
}
.thumbs img.active { border-color: var(--green); }
.badge {
  display: inline-block; background: var(--green-soft); color: var(--green-dark);
  border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600;
}
.product h1 { margin: 10px 0 12px; font-size: 26px; }
.buy-box {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
}
.buy-box .price { font-size: 28px; }
.buy-box .hint { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.buy-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.desc {
  margin-top: 20px;
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.desc img { margin: 12px auto; max-height: 420px; object-fit: contain; }
.desc h2, .desc h3 { margin-top: 1.2em; }

.page-card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.page-card h1 { margin-top: 0; }
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form { display: grid; gap: 10px; }
.form input, .form textarea {
  border: 1px solid #d0d0d0; border-radius: 8px; padding: 10px 12px;
}
.form button { justify-self: start; }
.ok { color: var(--green-dark); display: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 28px; }
.step { background: var(--white); border-radius: 8px; padding: 16px; box-shadow: var(--shadow); }
.step b { color: var(--green); display: block; margin-bottom: 6px; }

footer {
  background: #221f1f;
  color: #ddd;
  padding: 36px 0 20px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
footer h4 { color: #fff; margin: 0 0 10px; }
footer a:hover { color: #fff; }
.copy { border-top: 1px solid #3a3a3a; margin-top: 24px; padding-top: 14px; font-size: 12px; color: #999; }

.empty { padding: 48px; text-align: center; background: var(--white); border-radius: 12px; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero, .catalog-layout, .product, .contacts-grid, .footer-grid { grid-template-columns: 1fr; }
  .header .wrap { grid-template-columns: auto 1fr auto; }
  .btn-catalog span { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .header-actions .hide-sm { display: none; }
  .hero-banner h1 { font-size: 24px; }
}
