/**
 * /all-cat/
 * Etalon: medpribor.pro/all-cat/
 */

.mp-allcat {
  margin: 0 0 2.5rem;
  color: #526371;
  font-family: "Exo 2", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.mp-allcat a {
  color: #00bf80;
  text-decoration: none;
}

.mp-allcat a:hover {
  color: #0055a6;
}

.mp-allcat__hero {
  margin: 0 0 1.75rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: linear-gradient(135deg, #eef7f3 0%, #f5f8fa 55%, #e8f0f7 100%);
  border-radius: 3px;
}

.mp-allcat__title {
  margin: 0 0 0.5rem;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: #283037;
}

.mp-allcat__lead {
  margin: 0;
  font-size: 16px;
  color: #6a7a88;
}

.mp-allcat-section {
  margin: 0 0 2.25rem;
}

.mp-allcat-section__title {
  margin: 0 0 1.25rem;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #283037;
  text-align: center;
}

.mp-allcat-section__title span {
  display: inline-block;
  padding: 0 0.75rem 0.35rem;
  border-bottom: 2px solid #00bf80;
}

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

.mp-allcat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mp-allcat-card__media {
  display: block;
  margin: 0 0 0.75rem;
  overflow: hidden;
  border-radius: 3px;
  background: #f0f3f5;
  aspect-ratio: 5 / 3;
}

.mp-allcat-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.mp-allcat-card__media:hover img {
  transform: scale(1.04);
}

.mp-allcat-card__title {
  margin: 0 0 0.5rem;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.mp-allcat-card__title a {
  color: #283037;
}

.mp-allcat-card__title a:hover {
  color: #00bf80;
}

.mp-allcat-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mp-allcat-card__list li {
  margin: 0;
  padding: 0.15rem 0;
  font-size: 14px;
  line-height: 1.4;
}

.mp-allcat-card__list a {
  color: #526371;
}

.mp-allcat-card__list a:hover {
  color: #00bf80;
}

.mp-allcat-brands {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
}

.mp-allcat-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 88px;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e4e9ed;
  border-radius: 3px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-allcat-brand:hover {
  border-color: #00bf80;
  box-shadow: 0 2px 10px rgba(0, 85, 166, 0.08);
}

.mp-allcat-brand img {
  display: block;
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mp-allcat-brands__more {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 15px;
}

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

.mp-allcat-offer {
  box-sizing: border-box;
  padding: 1.25rem 1.15rem;
  background: #f7faf8;
  border: 1px solid #e0ebe5;
  border-radius: 3px;
}

.mp-allcat-offer__title {
  margin: 0 0 0.5rem;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.mp-allcat-offer__title a {
  color: #283037;
}

.mp-allcat-offer__title a:hover {
  color: #00bf80;
}

.mp-allcat-offer__text {
  margin: 0 0 0.9rem;
  font-size: 14px;
  color: #6a7a88;
}

.mp-allcat-offer__btn {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  background: #00bf80;
  border-radius: 3px;
}

.mp-allcat-offer__btn:hover {
  background: #0055a6;
  color: #fff !important;
}

.mp-allcat-sale {
  margin: 0;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 16px;
  background: #f5f8fa;
  border-radius: 3px;
}

@media (max-width: 992px) {
  .mp-allcat-grid,
  .mp-allcat-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mp-allcat-brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .mp-allcat__title {
    font-size: 22px;
  }

  .mp-allcat-section__title {
    font-size: 19px;
  }

  .mp-allcat-grid,
  .mp-allcat-offers,
  .mp-allcat-brands {
    grid-template-columns: 1fr;
  }

  .mp-allcat-brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
