.workers-cards * {
  box-sizing: border-box;
}

.worker-cards__wrapper {
  margin-bottom: 50px;
}

.workers-cards {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.workers-card-wrapper {
  /* height: 385px; */
  flex: calc(25% - 15px * 3 / 4) 0 0;
  background: #ffffff;
  border: 1px #e0e0e0 solid;
  transition-property: background-color;
  transition-duration: 0.3s;
}

.workers-card-wrapper:hover {
  cursor: pointer;
  background-color: #f1f1f1;
}

.workers-card-wrapper_active {
  flex: 100% 0 0;
  display: flex;
  justify-content: space-between;
}

.workers-card-wrapper_active .workers-card {
  width: calc(25% - 15px * 3 / 4);
  flex: calc(25% - 15px * 3 / 4) 0 0;
}

.workers-card-wrapper_active .about-worker {
  display: block;
  height: auto;
}

.workers-card {
  padding: 30px 20px;
}

.workers-photo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
  border-radius: 75px;
  border: none;
  outline: none;
  background-image: url("../img/no-photo.svg");
  background-position: center;
  background-position: 50% 100%;
  background-repeat: no-repeat;
}

.workers-name {
  color: var(--contacts-color);
  font-size: 1.17em;
  display: inline-block;
  text-align: center;
  width: 100%;
  margin-bottom: 7px;
  margin-top: 7px;
  box-sizing: border-box;
}

.workers-position {
  width: 100%;
  text-align: center;
  display: inline-block;
  margin: 2px auto 2px auto;
  font-size: 11pt;
}

.more-about-worker {
  margin-bottom: 5px;
  margin-top: 5px;
  width: 100%;
  text-align: center;
  display: inline-block;
  font-size: 10pt;
  color: #d5d5d5;
  transition-property: color;
  transition-duration: 0.3s;
}

.workers-card-wrapper:hover .more-about-worker {
  color: var(--deep-gray-text);
  transition-property: color;
  transition-duration: 0.3s;
}

.workers-card-wrapper.workers-card-wrapper_active .more-about-worker {
  display: none;
}

.workers-vk {
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  border: 2px solid rgb(75, 75, 75);
  margin: 0 auto 0 auto;
  background-image: url("../img/workers-vk5.svg");
  background-color: #fff;
  background-size: 1.6em 1.6em;
  background-position: center;
  background-repeat: no-repeat;
  display: block;
  transition-property: background-image, background-color;
  transition-duration: 0.3s;
}

.workers-card-wrapper:hover .workers-vk {
  background-image: url("../img/workers-vk5-inverted.svg");
  background-color: #3a3a3a;
}

.about-worker {
  font-size: 11pt;
  padding: 25px 2em 2em 2em;
  display: none;
}

.about-worker p {
  margin: 0 0 0.5em 0;
  text-align: justify;
}

@media (max-width: 1350px) {
  .workers-card-wrapper {
    flex: calc(33% - 15px * 2 / 3) 0 0;
  }

  .workers-card-wrapper_active {
    flex: 100% 0 0;
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 990px) {
  .workers-card-wrapper {
    flex: calc(50% - 15px * 1 / 2) 0 0;
  }

  .workers-card-wrapper_active {
    flex: 100% 0 0;
    display: flex;
    justify-content: space-between;
  }
}

@media (max-width: 630px) {
  .workers-card-wrapper {
    flex: 100% 0 0;
  }

  .workers-card-wrapper_active {
    flex: 100% 0 0;
    display: flex;
    justify-content: space-between;
  }
}
