.team__list {
  margin: 75px -5px 25px !important;
  text-align: center;
  padding: 0 10px;
}

.team__person {
  margin: 0 0 80px;
  display: block;
  color: #000;
  padding: 0 5px !important;
}

.team__person__avatar {
  aspect-ratio: 0.85;
  margin: 0 0 30px;
}

.team__person__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__person__name {
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 15px;
}

.team__person__type {
  font-size: 18px;
}

.modal__team {
  display: none !important;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  overflow-y: auto;
  background: rgba(56, 59, 64, 0.95);
  color: #fff;
}

.modal__team.open {
  display: block !important;
}

.modal__close {
  position: fixed;
  width: 50px;
  height: 50px;
  background: none;
  outline: none;
  border: 0;
  padding: 0;
  margin: 0;
  right: 50px;
  top: 50px;
}

.modal__team__container {
  padding: 150px;
  display: flex;
  flex-direction: row;
}

.modal__team .team__person__avatar {
  width: 45%;
  margin-right: 5%;
}

.modal__team__content {
  width: 50%;
  text-align: left;
  padding-top: 50px;
}

.modal__team__info {
  display: flex;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.modal__team__info img {
  width: 29px;
  height: 29px;
  margin-left: 20px;
}

.modal__team__name {
  font-size: 50px;
  text-transform: uppercase;
  font-weight: 700;
  flex-grow: 1
}

.modal__team__contacts {
  display: flex;
  margin-bottom: 50px;
}

.modal__team__contacts a {
  color: #fff;
  font-size: 20px;
  margin-right: 40px;
}

.modal__team__contacts img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}

.team__accordion__item {
  margin: 0 0 20px;
}

.team__accordion__item.open .team__accordion__title img {
  transform: rotate(-180deg)
}

.team__accordion__item.open .team__accordion__text {
  max-height: 10000px;
  transition-timing-function: cubic-bezier(0.5, 0, 1, 0);
  transition-delay: 0s;
}

.team__accordion__title {
  display: flex;
  align-items: center;
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.team__accordion__title img {
  width: 20px;
  height: 12px;
  transition: 0.3s ease-in;
  margin-right: 10px;
}

.team__accordion__text {
  max-height: 0;
  overflow: hidden;
  font-size: 20px;
  transition: 0.3s ease-in;
  transition: max-height .8s cubic-bezier(0, 1, 0, 1) -.1s;
  box-sizing: border-box;
}

.team__accordion__text p {
  padding: 25px 0;
  margin: 0;
}

@media screen and (max-width: 1178px) {
  .team {
    margin: 30px 0;
  }
  .modal__close {
    position: absolute;
    width: 33px;
    height: 33px;
    top: 15px;
    right: 15px;
  }
  .modal__team__container {
    flex-direction: column;
    padding: 70px 20px;
  }
  .modal__team .team__person__avatar {
    width: 100%;
    margin: 0;
  }
  .modal__team__name {
    font-size: 30px
  }
  .modal__team__content {
    width: 100%
  }
  .modal__team__info img {
    width: 18px;
    height: 18px;
    margin-left: 20px;
  }

  .modal__team__contacts {
    margin-bottom: 30px;
  }
  
  .modal__team__contacts a {
    font-size: 15px;
    margin-right: 25px;
  }
  
  .modal__team__contacts img {
    width: 14px;
    height: 14px;
    margin-right: 5px;
  }

  .team__accordion__title {
    font-size: 18px;
  }
  
  .team__accordion__title img {
    width: 15px;
    height: 8px;
  }

  .team__accordion__text {
    font-size: 15px;
  }
}