.sam-module,
.sam-section {
  box-sizing: border-box;
  color: #17251f;
  font-family: inherit;
}

.sam-section {
  margin: 2.5rem 0;
}

.sam-section__header {
  align-items: center;
  border-bottom: 1px solid #dce7e0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
}

.sam-section__header h2 {
  color: #174c36;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  margin: 0;
}

.sam-more {
  color: #287a57;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.sam-search {
  align-items: end;
  background: linear-gradient(135deg, #f4faf7, #edf6f1);
  border: 1px solid #d8e8df;
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto auto;
  margin: 0 0 1.75rem;
  padding: 1.1rem;
}

.sam-search__field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.sam-search label {
  color: #244c39;
  font-size: .88rem;
  font-weight: 700;
}

.sam-search input,
.sam-search select {
  background: #fff;
  border: 1px solid #c9dad1;
  border-radius: 8px;
  box-sizing: border-box;
  color: #22372d;
  font: inherit;
  min-height: 43px;
  padding: .55rem .7rem;
  width: 100%;
}

.sam-search__reset {
  align-self: center;
  color: #68766f;
  font-size: .88rem;
  text-decoration: none;
}

.sam-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sam-card {
  background: #fff;
  border: 1px solid #e0e9e4;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(26, 69, 49, .07);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.sam-card:hover {
  box-shadow: 0 12px 34px rgba(26, 69, 49, .13);
  transform: translateY(-2px);
}

.sam-card__image {
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
}

.sam-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sam-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem;
}

.sam-card h3 {
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 0 0 .65rem;
}

.sam-card__meta {
  color: #718078;
  font-size: .82rem;
  margin-bottom: .45rem;
}

.sam-card h3 a {
  color: #163f2e;
  text-decoration: none;
}

.sam-card p {
  color: #53635c;
  font-size: .94rem;
  line-height: 1.9;
  margin: 0 0 1rem;
}

.sam-card__actions {
  align-items: center;
  display: flex;
  gap: .55rem;
  margin-top: auto;
}

.sam-button {
  background: #236c4c;
  border: 1px solid #236c4c;
  border-radius: 8px;
  color: #fff !important;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 700;
  justify-content: center;
  padding: .55rem .85rem;
  text-decoration: none !important;
}

.sam-button--ghost {
  background: #fff;
  color: #236c4c !important;
}

.sam-download-wrap {
  margin-top: 1.75rem;
}

.sam-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.sam-pagination .page-numbers {
  align-items: center;
  border: 1px solid #d4e1da;
  border-radius: 7px;
  color: #245d43;
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0 .6rem;
  text-decoration: none;
}

.sam-pagination .current {
  background: #236c4c;
  border-color: #236c4c;
  color: #fff;
}

.sam-article {
  color: #253b31;
}

.sam-article-meta {
  align-items: center;
  background: #f3f8f5;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  margin-bottom: 1.5rem;
  padding: .85rem 1rem;
}

.sam-article-meta span {
  color: #5d6e65;
  font-size: .9rem;
}

.sam-article-meta a {
  color: #216947;
  text-decoration: none;
}

.sam-article-block {
  border-bottom: 1px solid #e1e9e4;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
}

.sam-article-block > h2 {
  color: #174c36;
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.sam-article-body {
  font-size: 1rem;
  line-height: 2;
}

.sam-article-source {
  background: #f8faf9;
  border: 1px solid #dde8e2;
  border-radius: 12px;
  padding: 1.2rem;
}

.sam-related-grid,
.sam-product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sam-related-card,
.sam-product-card {
  border: 1px solid #dde7e1;
  border-radius: 11px;
  padding: 1rem;
}

.sam-related-card h3,
.sam-product-card h3 {
  font-size: 1rem;
  line-height: 1.75;
  margin: .35rem 0 .6rem;
}

.sam-related-card h3 a,
.sam-product-card h3 a {
  color: #174c36;
  text-decoration: none;
}

.sam-related-card p {
  color: #5d6c64;
  font-size: .88rem;
  line-height: 1.8;
  margin: 0;
}

.sam-related-card__date {
  color: #7a8881;
  font-size: .8rem;
}

.sam-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sam-product-card {
  display: flex;
  flex-direction: column;
}

.sam-product-card__image {
  aspect-ratio: 1 / 1;
  background: #f4f7f5;
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.sam-product-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sam-product-card__price {
  color: #1d6847;
  font-weight: 700;
  margin: auto 0 .75rem;
}

.sam-empty {
  background: #f5f9f7;
  border-radius: 10px;
  color: #5e6d66;
  padding: 1rem;
}

@media (max-width: 900px) {
  .sam-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sam-search {
    grid-template-columns: 1fr 1fr;
  }

  .sam-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sam-grid {
    grid-template-columns: 1fr;
  }

  .sam-search,
  .sam-related-grid,
  .sam-product-grid {
    grid-template-columns: 1fr;
  }

  .sam-section__header {
    align-items: flex-start;
  }
}
