.companies-block {
  width: 100%;
}

.companies-block .company_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  width: 100%;
  align-items: stretch;
}

.company_grid .company_card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  height: 100%;
  text-decoration: none !important;
}

.company_grid .company_card.onlyIcon {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card-color);
}

.company_card img {
  width: 75%;
  height: auto;
  object-fit: contain;
}

.company_card.onlyIcon img {
  width: 50%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .companies-block .company_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .companies-block .company_grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .company_grid .company_card {
    padding: 1rem;
  }
}
