.teams-block .main-title {
  margin-bottom: 40px;
}
.teams-block .team-item-template {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--stroke-secondary);
  background: var(--background);
  height: 100%;
}
.teams-block .team-img {
  width: 100%;
  height: auto;
  max-height: 270px;
  display: flex;
}
.teams-block .team-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1/1;
}
.teams-block .team-info {
  display: flex;
  flex-direction: column;
  padding: 30px;
}
.teams-block .swiper-slide {
  height: auto;
}
.teams-block .team-exp {
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: var(--second);
  margin-bottom: 10px;
}
.teams-block .team-name {
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  margin-bottom: 10px;
}
.teams-block .team-post {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: var(--main-text-primary);
  margin-bottom: 10px;
}
.teams-block .cert {
  display: flex;
  gap: 20px;
  align-items: center;
}
.teams-block .cert svg path {
  fill: var(--primary);
}
.teams-block .cert-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 120%;
  transition: 0.5s;
}
.teams-block .cert:hover .cert-name {
  color: var(--primary);
}

@media (max-width: 1200px) {
  .teams-block .team-info {
    padding: 10px;
  }
  .teams-block .cert {
    gap: 10px;
  }
  .teams-block .main-title {
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .teams-block .team-exp {
    margin-bottom: 5px;
  }
  .teams-block .team-name {
    margin-bottom: 5px;
    font-size: 16px;
  }
  .teams-block .team-post {
    margin-bottom: 5px;
    font-size: 14px;
  }
}
