.teachers {
  padding: 90px 0;
}
.teachers__head {
  margin-bottom: 32px;
}
.teachers__head h4 {
  margin-bottom: 10px;
}
@media screen and (max-width: 1023px) {
  .teachers {
    padding: 70px 0;
  }
}
@media screen and (max-width: 767px) {
  .teachers {
    padding: 50px 0;
  }
}

.profile-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.teachers-list {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
@media screen and (max-width: 1149px) {
  .teachers-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 32px;
  }
}
@media screen and (max-width: 1023px) {
  .teachers-list {
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  }
}

.profile-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1 320px;
}
.profile-card:last-child {
  margin-bottom: 0;
}
.profile-card__head {
  margin-bottom: 20px;
}
.profile-card__head.no-photo {
  aspect-ratio: 200/200;
  border-radius: 50%;
}
.profile-card__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 200px;
  max-width: 200px;
  border-radius: 50%;
  overflow: hidden;
}
.profile-card__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.profile-card__name {
  font-weight: bold;
  color: var(--highlight);
}
.profile-card__position {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}
.profile-card__contacts {
  font-size: 18px;
  line-height: 150%;
  margin-top: 8px;
}
@media screen and (max-width: 1023px) {
  .profile-card__contacts {
    font-size: 16x;
  }
}
@supports (font-size: clamp(1px, 2vw, 3px)) {
  .profile-card__contacts {
    font-size: clamp(16px, 1.25vw, 18px);
  }
}
.profile-card__contacts a {
  display: block;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: -webkit-text-decoration 0.12s ease-in-out;
  transition: text-decoration 0.12s ease-in-out;
  transition: text-decoration 0.12s ease-in-out, -webkit-text-decoration 0.12s ease-in-out;
}
@media (any-hover: hover) {
  .profile-card__contacts a:hover {
    text-decoration-color: inherit;
  }
}
.profile-card__lehrer {
  font-size: 18px;
  line-height: 150%;
  margin-bottom: 8px;
}
@media screen and (max-width: 1023px) {
  .profile-card__lehrer {
    font-size: 16px;
  }
}
@supports (font-size: clamp(1px, 2vw, 3px)) {
  .profile-card__lehrer {
    font-size: clamp(16px, 1.25vw, 18px);
  }
}
.profile-card__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  font-size: 16px;
  font-weight: bold;
  color: #000;
  line-height: 150%;
  padding-left: 32px;
  margin-bottom: 8px;
}
.profile-card__contact:last-child {
  margin-bottom: 0;
}
.profile-card__contact::before {
  position: absolute;
  font-family: "icomoon";
  left: 0;
  top: 0;
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
}
.profile-card__phone::before {
  content: "\e916";
  font-size: 20px;
}
.profile-card__email::before {
  content: "\e901";
  font-size: 28px;
}
.profile-card__categories {
  margin-top: 8px;
}
.profile-card__category {
  font-size: 16px;
  line-height: 150%;
  color: #575756;
}