.card-flip {
  max-width: 400px;
  margin-inline: auto;
  width: 100%;
  height: 100%;
  perspective: 1000px;
  position: relative;
  z-index: 1;
  transform-origin: center;

  .card-flip__content {
    position: relative;
    transition: transform 1s;
    transform-style: preserve-3d;
    transform-origin: center right;
  }

  .card-flip__front,
  .card-flip__back {
    position: absolute;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .card-flip__front{
    border-radius: 24px;
    padding: 10px 12px 15px;
    background-color: #0069A6;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.15);
    row-gap: 15px;
  }

  .card-flip__back {
    transform: rotateY(180deg);
    padding: 8px 12px 15px;
    background: #843770;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.19);
    border-radius: 24px;
    row-gap: 20px;
  }
}
.team-card__iconFlip, .team-card__iconClose {
    position: absolute;
    top: 15px;
    right: 15px;
}
.card-flip.is-active .card-flip__content{
    transform: translateX(-100%) rotateY(-180deg);
  }

@media(hover: hover) and (pointer: fine) {

  .card-flip.is-translate:hover{
    transform: translate(-8px, -6px);
    z-index: 2;
  }

  .card-flip:hover .card-flip__content{
    transform: translateX(-100%) rotateY(-180deg);
  }

  .team-card__iconFlip, .team-card__iconClose {
    display: none;
  }

}

.team-card {
  width: 100%;
  max-width: 345px;
  height: 411px;
  border-radius: 24px;
  background-color: #0069A6;
  margin-inline: auto;

  .team-card__imgBox {
    border-radius: 3px;
    position: relative;
    text-align: center;
    margin-bottom: 15px;
    overflow: hidden;
  }

  .team-card__img {
    max-width: 100%;
  }

  .team-card__title {
    font-family: 'Roboto flex', Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    color: #fff;
    margin: 5px 0 8px;
    line-height: 1.1;
  }

  .team-card__content {

    max-width: 85%;
    text-align: center;

    >* {
      font-size: 1.25rem;
      font-weight: 300;
      font-family: 'Roboto', Arial, Helvetica, sans-serif;
      line-height: 1.2;
    }

    ul,
    ol {
      margin-left: 15px;
    }

  }

  .team-card__link {
    height: 36px;
  }
}




.team-card__back {


  .team-card__title {
    color: hsl(0, 0%, 100%);

  }


  .team-card__content {

    >* {
      color: hsl(0, 0%, 100%);
    }
  }

}
