.team-nine-block {
  padding: 50px 0;
}

.team-nine-block h2.block-title span {
  font-weight: inherit;
  color: var(--primary);
}

.team-nine-block .team {
  overflow: hidden;
  margin-top: 30px;
}

.team-nine-block .member {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
}

.team-nine-block .member__photo-container {
  position: relative;
  width: 100%;
}

.team-nine-block .member__photo {
  width: 100%;
  object-fit: contain;
  height: auto;
  display: block;
}

.team-nine-block .member__info {
  width: 100%;
  padding: 20px;
  background-color: var(--card);
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team-nine-block .member__name {
  font-weight: 500;
  font-size: 18px;
  line-height: 120%;
  color: var(--head-primary);
  margin-bottom: 5px;
}

.team-nine-block .member__duty {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--head-primary);
  margin-bottom: 15px;
}

.team-nine-block .member__contacts {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: space-between;
  align-items: stretch;
  gap: 15px;
}

.team-nine-block .member__contact {
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.team-nine-block .member__contact-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: var(--main-text);
  margin-bottom: 5px;
}

.team-nine-block .member__contact-element {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.team-nine-block .member__contact-element:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.member__contact-element {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-nine-block .block-bot {
  margin-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.team-nine-block .nav-holder {
  width: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.team-nine-block .socials {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.team-nine-block .social {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.team-nine-block .social:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.tg {
  background-color: #36ade1;
}

.wa {
  background-color: #25d366;
}

@media (max-width: 992px) {
  .team-nine-block {
    padding: 20px 0;
  }

  .team-nine-block .member__info {
    padding: 15px;
  }
}

@media (max-width: 769px) {
  .team-nine-block .member__contact-element {
    font-size: 14px;
  }

  .team-nine-block .member__name {
    font-size: 16px;
  }

  .team-nine-block .member__duty {
    font-size: 14px;
  }

  .team-nine-block .member__contact-title {
    font-size: 13px;
  }
}

@media (max-width: 498px) {
  .team-nine-block .team-pagination {
    display: none;
  }

  .team-nine-block .social {
    width: 40px;
    height: 40px;
  }

  .team-nine-block .member__info {
    padding: 12px;
  }

  .team-nine-block .member__contacts {
    gap: 10px;
  }
}