

.teams__inner {
  display: flex;
  flex-direction: column;
}

.teams__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.team-card {
  position: relative;
  background: var(--color-white);
  overflow: hidden;
  padding: 24px 16px 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  border-radius: 8px;
  flex-grow: 1;
  background: url(/images/soccer-field-1-svgrepo-com.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: 95%;
  background-color: var(--color-white);
}
.team-card__top {
  display: flex;

}
.team-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.team-card__img-wrap {
    display: flex;
  justify-content: start; /* Центрируем изображение */
  align-items: center; /* Вертикальное центрирование */
}

.team-card__img {
  height: 64px;
  width: 64px;
  object-fit: contain;
}

.team-card__name {
  text-transform: capitalize;
  margin: 0;
  font-size: 20px;
  color: var(--color-dark);
  transition: color .3s ease;
}
.team-card__top-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 8px;
}
.team-card__country {
  font-size: 14px;
  color: var(--color-gray);
  text-align: start;
}

.team-card:hover .team-card__name {
  color: var(--color-primary);  /* Цвет при ховере */
}