.products {
  width: min(var(--container-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto 52px;
}
.products__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.products h2 {
  margin: 0;
  color: #12362c;
  font-family: var(--font-display);
  font-size: clamp(32px, calc(2.2vw + 4px), 40px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.products__all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #14533f;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.products__all-link span {
  font-size: 20px;
  font-weight: 400;
  line-height: .8;
}
.products__all-link:hover {
  color: #0b3f2f;
  text-decoration: none;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.products__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(67, 52, 35, .09);
  border-radius: 14px;
  background: rgba(255, 253, 249, .82);
  color: var(--color-text);
  text-decoration: none;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, box-shadow 220ms ease;
}
.products__card img {
  display: block;
  width: 100%;
  height: 172px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
}
.products__name {
  min-height: 34px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.products__price {
  display: block;
  margin-top: 7px;
  color: var(--color-brand);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}
.products__price small {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 600;
}
.products__card:hover {
  border-color: rgba(20, 83, 63, .22);
  box-shadow: 0 12px 26px rgba(28,58,46,.1);
  transform: translateY(-4px);
}
.products__card:hover img {
  transform: none;
}
@media (max-width: 900px) {
  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .products {
    margin-bottom: 36px;
  }
  .products__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 14px;
  }
  .products h2 {
    font-size: 29px;
    white-space: nowrap;
  }
  .products__all-link {
    font-size: 14px;
    white-space: nowrap;
  }
  .products__all-link span {
    font-size: 16px;
  }
  .products__grid {
    gap: 12px;
  }
  .products__card {
    padding: 9px;
  }
  .products__card img {
    height: 132px;
  }
  .products__name {
    min-height: 32px;
    font-size: 12px;
  }
  .products__price {
    font-size: 17px;
  }
}
