:root {
  --zf-green: #008000;
  --zf-green-hover: #006600;
  --zf-green-soft: #e8f5e8;
  --zf-text: #222;
  --zf-muted: #777;
  --zf-border: #e6e6e6;
  --zf-bg: #fff;
  --zf-wrap: 1200px;
  --zf-catalog-gap: 20px;
  --zf-catalog-row-gap: 60px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--zf-text);
  background: var(--zf-bg);
  line-height: 1.45;
}

a { color: inherit; }

.zf-wrap {
  max-width: var(--zf-wrap);
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Header ── */
.zf-header {
  background: #fff;
  border-bottom: 1px solid var(--zf-border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.zf-topbar {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  min-height: 78px;
  padding: .4rem 0;
}

.zf-logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.zf-logo-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--zf-green-soft);
  font-size: 1.4rem;
}

.zf-logo-text {
  font-weight: 700;
  font-size: 1.42rem;
  color: var(--zf-green);
  white-space: nowrap;
}

.zf-topnav {
  display: none;
  gap: 2rem;
  margin: 0 auto;
}

.zf-topnav a {
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--zf-text);
  white-space: nowrap;
}

.zf-topnav a:hover { color: var(--zf-green); }

.zf-topactions {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-left: auto;
}

.zf-icon-link {
  color: var(--zf-muted);
  display: grid;
  place-items: center;
}
.zf-icon-link svg { width: 24px; height: 24px; }

.zf-contact-link {
  display: none;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 500;
  color: #555;
  white-space: nowrap;
}
.zf-contact-link:hover { color: var(--zf-green); }

.zf-phone {
  display: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.22rem;
  color: var(--zf-text);
  white-space: nowrap;
}

.zf-cart-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid var(--zf-border);
  color: var(--zf-text);
  text-decoration: none;
}

.zf-cart-btn svg { width: 24px; height: 24px; }

.zf-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--zf-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.zf-account-link {
  display: none;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--zf-green);
}

.zf-menu-btn {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--zf-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.zf-menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

.zf-subbar {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.zf-search {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--zf-border);
  border-radius: 6px;
  padding: 0 .85rem;
  height: 44px;
  font-size: 1.05rem;
  color: var(--zf-muted);
}

.zf-search input {
  border: none;
  outline: none;
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  background: transparent;
  color: var(--zf-text);
}

.zf-subselect {
  display: none;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--zf-border);
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--zf-text);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.zf-subselect.is-active {
  border-color: var(--zf-green);
  color: var(--zf-green);
  font-weight: 600;
}

.zf-subselect-dropdown:hover .zf-dropdown { display: block; }

.zf-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--zf-border);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  z-index: 50;
  padding: .35rem 0;
}

.zf-dropdown a {
  display: block;
  padding: .55rem 1rem;
  text-decoration: none;
  font-size: .88rem;
}
.zf-dropdown a:hover { background: var(--zf-green-soft); color: var(--zf-green); }

.zf-mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--zf-border);
  padding: .5rem 16px 1rem;
}
.zf-mobile-nav.is-open { display: flex; }
.zf-mobile-nav a {
  padding: .65rem 0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f2f2f2;
}

/* ── Breadcrumbs ── */
.zf-breadcrumbs {
  padding: 14px 16px 0;
  font-size: .82rem;
  color: var(--zf-muted);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
}
.zf-breadcrumbs a { color: var(--zf-muted); text-decoration: none; }
.zf-breadcrumbs a:hover { color: var(--zf-green); }

/* ── Main ── */
.zf-main { min-height: 50vh; padding-bottom: 2rem; }

.zf-page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 1.25rem 0 1.5rem;
  color: var(--zf-text);
}

/* ── Catalog layout ── */
.zf-catalog {
  padding-bottom: 2.5rem;
  --zf-wrap: 1360px;
  --zf-catalog-card-min: 320px;
}

.zf-catalog-layout {
  display: grid;
  gap: 1.5rem;
}

.zf-catalog-main {
  min-width: 0;
}

.zf-sidebar {
  border: 1px solid var(--zf-border);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  height: fit-content;
}

.zf-filter-block + .zf-filter-block {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid #f0f0f0;
}

.zf-filter-block h3 {
  margin: 0 0 .65rem;
  font-size: .95rem;
  font-weight: 700;
}

.zf-check {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  margin-bottom: .45rem;
  cursor: pointer;
}

.zf-price-range {
  display: grid;
  gap: .35rem;
  margin-bottom: .65rem;
}
.zf-price-range input[type=range] { width: 100%; accent-color: var(--zf-green); }

.zf-price-inputs {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.zf-price-inputs input {
  width: 100%;
  border: 1px solid var(--zf-border);
  border-radius: 6px;
  padding: .45rem .55rem;
  font: inherit;
}

.zf-btn-apply {
  margin-top: 1rem;
  width: 100%;
  height: 38px;
  border: none;
  border-radius: 6px;
  background: var(--zf-green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.zf-btn-apply:hover { background: var(--zf-green-hover); }

.zf-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.zf-toolbar-search input,
.zf-toolbar-sort select {
  height: 38px;
  border: 1px solid var(--zf-border);
  border-radius: 6px;
  padding: 0 .75rem;
  font: inherit;
  min-width: 200px;
}

.zf-toolbar-sort {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  color: var(--zf-muted);
}

/* ── Product grid (как zferma63.ru) ── */
.zf-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--zf-catalog-gap);
  row-gap: var(--zf-catalog-row-gap);
  padding: 0 10px;
}

.zf-product-card {
  background: #fff;
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zf-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #efefef;
  overflow: hidden;
  border-radius: 4px;
}

.zf-product-media a {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
}

.zf-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .2s ease;
}
.zf-product-card:hover .zf-product-media img { transform: scale(1.03); }

.zf-no-photo {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--zf-muted);
  font-size: .85rem;
}

.zf-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  color: #444;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.zf-fav:hover { color: #e74c3c; }

.zf-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: 4px;
  color: #fff;
}
.zf-badge-hit { background: #e67e22; }
.zf-badge-new { background: var(--zf-green); }

.zf-product-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zf-product-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--zf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: .35rem;
}
.zf-product-title:hover { color: var(--zf-green); }

.zf-product-cat {
  margin-top: .2rem;
  font-size: .8rem;
  color: var(--zf-muted);
}

.zf-product-price {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 700;
  color: var(--zf-green);
  line-height: 1;
}

.zf-qty-label {
  margin-top: 12px;
  font-size: .8rem;
  color: var(--zf-muted);
}

.zf-unit-select {
  margin-top: .35rem;
  width: 100%;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 .55rem;
  font-size: .88rem;
  background: #f5f5f5;
  color: var(--zf-text);
}

.zf-product-actions {
  display: flex;
  gap: .5rem;
  margin-top: 12px;
  align-items: stretch;
}

.zf-qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--zf-border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.zf-qty-control button {
  width: 32px;
  height: 40px;
  border: none;
  background: #fafafa;
  font-size: 1rem;
  cursor: pointer;
  color: #444;
}
.zf-qty-control button:hover { background: #eee; }

.zf-qty-control input {
  width: 28px;
  border: none;
  border-left: 1px solid var(--zf-border);
  border-right: 1px solid var(--zf-border);
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: #fff;
  padding: 0;
}

.zf-btn-cart {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 4px;
  background: var(--zf-green);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  padding: 0 .55rem;
  min-height: 40px;
  white-space: nowrap;
}
.zf-btn-cart:hover { background: var(--zf-green-hover); }
.zf-btn-disabled { background: #ccc; cursor: not-allowed; }

/* ── Catalog: крупные фото — макс. 3 колонки, карточка не уже 320px ── */
.zf-product-grid.zf-product-grid-catalog {
  padding: 0;
  row-gap: 2.5rem;
  column-gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zf-product-grid-catalog .zf-product-media {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.zf-product-grid-catalog .zf-product-title {
  margin-top: .5rem;
  font-size: 1.05rem;
}

.zf-product-grid-catalog .zf-product-price {
  margin-top: 8px;
}

.zf-product-grid-catalog .zf-qty-label {
  margin-top: 8px;
  font-size: .75rem;
}

.zf-product-grid-catalog .zf-unit-select {
  height: 32px;
  font-size: .82rem;
}

.zf-product-grid-catalog .zf-product-actions {
  margin-top: 8px;
}

.zf-product-grid-catalog .zf-qty-control button {
  height: 36px;
}

.zf-product-grid-catalog .zf-btn-cart {
  min-height: 36px;
  font-size: .82rem;
}

.zf-empty {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
  color: var(--zf-muted);
  border: 1px dashed var(--zf-border);
  border-radius: 8px;
}

/* ── Footer ── */
.zf-footer {
  background: #2b2b2b;
  color: #fff;
  padding: 2rem 0;
  margin-top: 2rem;
}
.zf-footer-desc { margin-top: .5rem; font-size: .88rem; opacity: .75; max-width: 320px; }
.zf-footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.zf-footer-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; }
.zf-footer-links a:hover { color: #fff; }
.zf-footer-contacts a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; }

/* ── Cookie ── */
.zf-cookie {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: 320px;
  background: #f4f4f4;
  border: 1px solid var(--zf-border);
  border-radius: 8px;
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: #555;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  z-index: 60;
}
.zf-cookie button {
  border: none;
  background: #ddd;
  border-radius: 4px;
  padding: .4rem .75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.zf-cookie button:hover { background: #ccc; }

/* ── Shared buttons (cart, auth, landing) ── */
.btn-primary, .zf-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--zf-green); color: #fff; border: none; border-radius: 6px;
  padding: .75rem 1.2rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary:hover, .zf-btn-primary:hover { background: var(--zf-green-hover); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--zf-text); border: 1px solid var(--zf-border);
  border-radius: 6px; padding: .75rem 1.2rem; font-weight: 600; text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .65rem 1.35rem;
  border: 1.5px solid var(--zf-green);
  border-radius: 999px;
  color: var(--zf-green);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  background: #fff;
  transition: background .15s ease, color .15s ease;
}
.btn-outline:hover {
  background: var(--zf-green-soft);
}

.card-panel, .auth-card {
  border: 1px solid var(--zf-border);
  border-radius: 8px;
  background: #fff;
  padding: 1.25rem;
}

.page-title, .auth-title { color: var(--zf-text); font-weight: 700; }
.auth-title { font-size: 1.6rem; margin: 0; }
.auth-sub { color: var(--zf-muted); margin: .5rem 0 1rem; }
.auth-shell { display: grid; place-items: center; min-height: 50vh; padding: 1rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-form { display: grid; gap: .75rem; }
.auth-form input { width: 100%; border: 1px solid var(--zf-border); border-radius: 6px; padding: .7rem .8rem; font: inherit; }
.form-error { color: #c0392b; font-size: .85rem; }
.auth-foot { margin-top: 1rem; font-size: .9rem; }
.auth-foot a { color: var(--zf-green); font-weight: 600; }

.cart-qty-btn {
  width: 30px; height: 34px; border: 1px solid var(--zf-border); background: #fafafa; cursor: pointer; border-radius: 4px;
}

.delivery-tab {
  padding: .55rem 1.1rem; border: 1px solid var(--zf-border); border-radius: 999px; background: #fff; cursor: pointer; font-size: .95rem; font-weight: 600;
}
.delivery-tab.is-active { background: var(--zf-green-soft); border-color: var(--zf-green); color: var(--zf-green); }
.delivery-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }

.is-hidden { display: none !important; }

/* ── Cart & checkout ── */
.zf-cart-page { padding-bottom: 2.5rem; }

.zf-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .25rem;
}

.zf-page-title--inline { margin-bottom: 0; }

.zf-cart-back {
  font-size: 1rem;
  font-weight: 600;
  color: var(--zf-green);
  text-decoration: none;
}
.zf-cart-back:hover { color: var(--zf-green-hover); }

.zf-cart-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.zf-cart-items {
  display: grid;
  gap: 1rem;
}

.zf-cart-item {
  display: flex;
  gap: 1.15rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--zf-border);
  border-radius: 10px;
  background: #fff;
}

.zf-cart-item-img {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  background: #efefef;
  display: block;
}

.zf-cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zf-cart-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.zf-cart-item-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--zf-text);
  text-decoration: none;
}
.zf-cart-item-title:hover { color: var(--zf-green); }

.zf-cart-item-meta {
  font-size: .92rem;
  color: var(--zf-muted);
}

.zf-cart-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
  flex-wrap: wrap;
}

.zf-cart-qty-value {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 40px;
  padding: 0 .35rem;
  font-weight: 700;
  border-left: 1px solid var(--zf-border);
  border-right: 1px solid var(--zf-border);
  background: #fff;
}

.zf-cart-item-total {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--zf-green);
  white-space: nowrap;
}

.zf-cart-item-remove {
  align-self: flex-start;
  margin-top: .35rem;
  padding: 0;
  border: none;
  background: none;
  font-size: .88rem;
  color: var(--zf-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.zf-cart-item-remove:hover { color: #c0392b; }

.zf-checkout-card {
  border: 1px solid var(--zf-border);
  border-radius: 12px;
  background: #fff;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.zf-checkout-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--zf-text);
}

.zf-checkout-summary {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  background: #f9f9f9;
  border: 1px solid #eee;
}

.zf-checkout-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .4rem 0;
  font-size: 1rem;
}

.zf-checkout-row dt {
  margin: 0;
  color: #555;
  font-weight: 500;
}

.zf-checkout-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  color: var(--zf-text);
}

.zf-checkout-price { color: var(--zf-text); }

.zf-checkout-row--total {
  margin-top: .35rem;
  padding-top: .75rem;
  border-top: 1px solid #e0e0e0;
}

.zf-checkout-row--total dt {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--zf-text);
}

.zf-checkout-grand {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: var(--zf-green) !important;
}

.zf-checkout-form { margin-top: .25rem; }

.zf-checkout-section {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.zf-checkout-section legend {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--zf-text);
  margin-bottom: .75rem;
  padding: 0;
}

.zf-checkout-section .zf-field + .zf-field { margin-top: 0; }

.zf-checkout-section .delivery-tabs { margin-bottom: 1rem; }

.zf-delivery-fields {
  display: grid;
  gap: 1rem;
  margin-top: .25rem;
}

.zf-checkout-calc { width: 100%; }

.zf-checkout-pickup-note {
  margin: .5rem 0 0;
  font-size: .9rem;
  color: var(--zf-muted);
  line-height: 1.45;
}

.zf-delivery-quotes { display: grid; gap: .5rem; }

.delivery-quote {
  display: grid;
  gap: .2rem;
  width: 100%;
  text-align: left;
  padding: .85rem 1rem;
  border: 1px solid var(--zf-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  transition: border-color .15s ease, background .15s ease;
}

.delivery-quote:hover {
  border-color: #ccc;
  background: #fafafa;
}

.delivery-quote.is-selected {
  border-color: var(--zf-green);
  background: var(--zf-green-soft);
}

.delivery-quote-title {
  font-weight: 700;
  font-size: .95rem;
  color: var(--zf-text);
}

.delivery-quote-meta {
  font-size: .88rem;
  color: var(--zf-muted);
}

.delivery-quote-meta strong {
  color: var(--zf-green);
  font-weight: 700;
}

.zf-checkout-submit { width: 100%; margin-top: .25rem; }

.zf-checkout-login-hint {
  margin: 1rem 0 0;
  font-size: .88rem;
  color: var(--zf-muted);
  line-height: 1.45;
}

.zf-checkout-login-hint a {
  color: var(--zf-green);
  font-weight: 600;
  text-decoration: none;
}
.zf-checkout-login-hint a:hover { text-decoration: underline; }

.zf-cart-empty {
  margin-top: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--zf-border);
  border-radius: 12px;
  background: #fafafa;
}

.zf-cart-empty-icon { font-size: 3rem; margin-bottom: .75rem; }

.zf-cart-empty h2 {
  margin: 0 0 .5rem;
  font-size: 1.35rem;
}

.zf-cart-empty p {
  margin: 0 0 1.25rem;
  color: var(--zf-muted);
}

.zf-field select {
  width: 100%;
  border: 1px solid var(--zf-border);
  border-radius: 6px;
  padding: .7rem .8rem;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--zf-text);
}

.zf-field select:focus {
  outline: none;
  border-color: var(--zf-green);
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.12);
}

@media (min-width: 960px) {
  .zf-cart-layout { grid-template-columns: 1fr 420px; gap: 2rem; }
  .zf-checkout-card { position: sticky; top: 5.5rem; }
  .zf-cart-item-img { width: 120px; height: 120px; }
}

/* ── Landing ── */
.zf-hero-band {
  background: linear-gradient(180deg, #f7f5f0 0%, #faf8f4 38%, #ffffff 100%);
  padding: 1.75rem 0 3rem;
}

.hero-section {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 1.25rem 0 1.75rem;
}
.hero-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}
.hero-lead { margin-top: 1rem; color: var(--zf-muted); font-size: 1.05rem; max-width: 520px; }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 2rem; }
.feature-card {
  border: 1px solid var(--zf-border);
  border-radius: 8px;
  padding: 1.1rem;
  background: #fff;
}

/* ── Landing hero banner ── */
.hero-copy { display: flex; flex-direction: column; justify-content: center; }

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  color: var(--zf-green);
  text-transform: uppercase;
  letter-spacing: .14em;
  margin: 0 0 .75rem;
}

.hero-accent { color: var(--zf-green); }

.hero-cta {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-img {
  display: block;
  width: min(100%, 480px);
  height: auto;
  object-fit: contain;
}

.feature-card p {
  margin: .4rem 0 0;
  font-size: .88rem;
  color: var(--zf-muted);
  line-height: 1.45;
}

/* ── Homepage: Наша продукция (как zferma63 t692) ── */
.zf-home-catalog,
.zf-home-featured {
  padding: 3rem 0 3.5rem;
}

.zf-home-featured {
  background: #fafafa;
  border-top: 1px solid #eee;
}

.zf-home-catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.zf-home-catalog-intro {
  flex: 1;
  min-width: min(100%, 720px);
}

.zf-section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

.zf-section-lead {
  margin: 1rem 0 0;
  max-width: 560px;
  color: #555;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
}

.zf-category-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--zf-catalog-gap);
  row-gap: var(--zf-catalog-row-gap);
}

.zf-category-tile {
  text-decoration: none;
  color: inherit;
  display: block;
  min-width: 0;
}

/* Как zferma t692__blockimg_1-1: коллаж на весь квадрат, cover */
.zf-category-tile-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background-color: #efefef;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.zf-category-tile:hover .zf-category-tile-img {
  filter: brightness(1.02);
}

.zf-category-tile-ph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--zf-green);
}

.zf-category-tile-name {
  display: block;
  margin-top: 1rem;
  font-weight: 400;
  font-size: 1.25rem;
  text-align: center;
  line-height: 1.35;
  color: #333;
}

.zf-product-grid-home {
  margin-top: .25rem;
}

.zf-product-grid-home .zf-product-media {
  aspect-ratio: 1 / 1;
}

.zf-product-grid-home .zf-product-media a {
  padding: 0;
}

.zf-product-grid-home .zf-product-media img {
  object-fit: cover;
}

@media (min-width: 640px) {
  .zf-category-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .zf-home-catalog-head {
    margin-bottom: 5.5rem;
  }

  .zf-section-lead {
    margin-top: 1.15rem;
  }

  .zf-category-tile-name {
    font-size: 20px;
    margin-top: 1.1rem;
  }
}

@media (min-width: 640px) {
  .zf-product-grid.zf-product-grid-catalog {
    grid-template-columns: repeat(auto-fill, minmax(var(--zf-catalog-card-min), 1fr));
  }
}

@media (min-width: 960px) {
  .zf-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── Contact page ── */
.zf-contact-page { padding-top: .5rem; padding-bottom: 2rem; }

.zf-contact-lead {
  margin: -.5rem 0 1.5rem;
  color: var(--zf-muted);
  font-size: .95rem;
  max-width: 640px;
}

.zf-contact-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.zf-contact-card {
  background: #fff;
  border: 1px solid var(--zf-border);
  border-radius: 10px;
  padding: 1.35rem 1.5rem;
}

.zf-contact-card-title {
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--zf-text);
}

.zf-form { display: grid; gap: 1rem; }

.zf-form-row { display: grid; gap: 1rem; }

.zf-field { display: grid; gap: .35rem; }

.zf-field label {
  font-size: .82rem;
  font-weight: 600;
  color: #444;
}

.zf-req { color: #c0392b; }

.zf-field input,
.zf-field textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .7rem .85rem;
  font: inherit;
  color: var(--zf-text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.zf-field input::placeholder,
.zf-field textarea::placeholder { color: #aaa; }

.zf-field input:focus,
.zf-field textarea:focus {
  outline: none;
  border-color: var(--zf-green);
  box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.12);
}

.zf-field textarea { resize: vertical; min-height: 120px; }

.zf-form-submit {
  margin-top: .25rem;
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: var(--zf-green);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .15s ease;
}

.zf-form-submit:hover { background: var(--zf-green-hover); }

.zf-form-status {
  margin: 0;
  font-size: .88rem;
  min-height: 1.25rem;
}

.zf-form-status.is-loading { color: var(--zf-muted); }
.zf-form-status.is-success { color: var(--zf-green); font-weight: 600; }
.zf-form-status.is-error { color: #c0392b; }

.zf-contact-aside { display: grid; gap: 1rem; }

.zf-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}

.zf-contact-list a {
  color: var(--zf-green);
  font-weight: 600;
  text-decoration: none;
}

.zf-contact-list a:hover { text-decoration: underline; }

.zf-contact-label {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--zf-muted);
  margin-bottom: .15rem;
}

.zf-contact-note {
  padding: 1.1rem 1.25rem;
  border-radius: 10px;
  background: #f7f7f4;
  border: 1px solid #ecece6;
  font-size: .9rem;
  color: #555;
  line-height: 1.55;
}

.zf-contact-note strong {
  display: block;
  color: var(--zf-text);
  margin-bottom: .35rem;
}

@media (min-width: 768px) {
  .zf-form-row-2 { grid-template-columns: 1fr 1fr; }
  .zf-contact-grid { grid-template-columns: 1.15fr .85fr; }
}

@media (min-width: 900px) {
  .hero-section { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .hero-banner-img { width: min(100%, 560px); }
  .zf-topnav { display: flex; }
  .zf-contact-link, .zf-phone, .zf-account-link { display: inline; }
  .zf-subselect { display: inline-flex; }
  .zf-menu-btn { display: none; }
  .zf-catalog-layout { grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: 1.75rem; }
  .zf-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 1.5rem; }
}
