.team-pagination__block:not(.active),
.team-pagination__pagination-next.hide,
.team-pagination__pagination-prev.hide {
  display: none;
}
.team-pagination {
  padding: 140px 0;
}
@media only screen and (max-width: 1200px) {
  .team-pagination {
    padding: 110px 0;
  }
}
@media only screen and (max-width: 768px) {
  .team-pagination {
    padding: 60px 0;
  }
}
.team-pagination__title {
  text-align: center;
  margin-bottom: 24px;
  font-weight: 700 !important;
  color: #171717;
}
@media only screen and (max-width: 1200px) {
  .team-pagination__title {
    margin-bottom: 20px;
  }
}
@media only screen and (max-width: 768px) {
  .team-pagination__title {
    font-size: 54px !important;
  }
}
@media only screen and (max-width: 575px) {
  .team-pagination__title {
    font-size: 36px !important;
    margin-bottom: 15px;
  }
}
.team-pagination__text {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  color: #545454;
  max-width: 620px;
  margin: 0 auto;
}
@media only screen and (max-width: 768px) {
  .team-pagination__text {
    font-size: 18px;
  }
}
@media only screen and (max-width: 575px) {
  .team-pagination__text {
    font-size: 16px;
  }
}
.team-pagination__block-wrapper {
  margin-top: 64px;
}
@media only screen and (max-width: 991px) {
  .team-pagination__block-wrapper {
    margin-top: 50px;
  }
}
@media only screen and (max-width: 768px) {
  .team-pagination__block-wrapper {
    margin-top: 45px;
  }
}
@media only screen and (max-width: 575px) {
  .team-pagination__block-wrapper {
    margin-top: 35px;
  }
}
.team-pagination__block {
  display: flex;
  justify-content: center;
  gap: 40px 20px;
  flex-wrap: wrap;
}
.team-pagination__block-item {
  width: calc(25% - 15px);
  position: relative;
}
@media only screen and (max-width: 991px) {
  .team-pagination__block {
    gap: 35px 15px;
  }
  .team-pagination__block-item {
    width: calc(33.33333333% - 10px);
  }
}
@media only screen and (max-width: 768px) {
  .team-pagination__block {
    gap: 35px 14px;
  }
  .team-pagination__block-item {
    width: calc(50% - 7px);
  }
}
@media only screen and (max-width: 575px) {
  .team-pagination__block-item {
    width: 100%;
  }
}
.team-pagination__block-item-image {
  width: 100%;
  aspect-ratio: 312 / 400;
  margin-bottom: 20px;
}
@media only screen and (max-width: 991px) {
  .team-pagination__block-item-image {
    margin-bottom: 15px;
  }
}
.team-pagination__block-item-name {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-gray-blue);
  margin-bottom: 4px;
}
@media only screen and (max-width: 991px) {
  .team-pagination__block-item-name {
    font-size: 18px;
    margin-bottom: 2px;
  }
}
@media only screen and (max-width: 575px) {
  .team-pagination__block-item-name {
    font-size: 16px;
  }
}
.team-pagination__block-item-post {
  font-size: 14px;
  line-height: 1.29;
  font-weight: 700;
  color: #545454;
}
.team-pagination__block-item-link {
  position: absolute;
  width: 40px;
  height: 40px;
  right: 20px;
  top: 20px;
  opacity: 1;
  visibility: visible;
  transition: transform 0.4s ease;
}
.team-pagination__block-item-link svg {
  width: 100%;
  height: 100%;
  display: block;
}
.team-pagination__block-item-link:hover,
.team-pagination__block-item-link:focus {
  transform: scale(1.05);
}
.team-pagination__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
}
.team-pagination__pagination svg {
  transition: transform 0.4s ease;
}
.team-pagination__pagination-prev svg {
  transform: rotate(180deg);
}
.team-pagination__pagination-item {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #27383f;
  font-weight: 600;
}
.team-pagination__pagination-next,
.team-pagination__pagination-prev {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  color: #27383f;
  font-weight: 600;
}
.team-pagination__pagination-prev {
  margin-right: 30px;
}
.team-pagination__pagination-next {
  margin-left: 30px;
}
.team-pagination__pagination-next:hover svg {
  transform: translateX(5px);
}
.team-pagination__pagination-prev:hover svg {
  transform: rotate(180deg) translateX(5px);
}
.team-pagination__pagination-item.active {
  background-color: #f6f6f6;
  border-radius: 50%;
}
