.drugs_section .drugs_grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.drug_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background-color: #f4f7f8;
  background-image: url(../../assets/media/footer-bg.31986b99d8e65e063a4a.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 28px 12px 22px;
  color: #0f2a3d;
  min-height: 100%;
}

.drug_card:hover,
.drug_card:focus {
  color: #0f2a3d;
  text-decoration: none;
}

.drug_card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #163246;
}

.drug_card__icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

.drug_card__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.drug_card__more {
  font-size: 13px;
  color: #8a97a3;
  font-weight: 500;
}

@media (max-width: 1199px) {
  .drugs_section .drugs_grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .drugs_section .drugs_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .drugs_section .drugs_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .drug_card {
    padding: 18px 8px 14px;
    border-radius: 16px;
  }

  .drug_card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
  }

  .drug_card__icon svg {
    width: 20px;
    height: 20px;
  }

  .drug_card__name {
    font-size: 15px;
  }
}
