.items__items {
  display: grid;
  gap: 40px;
}

.experts-card {
  display: flex;
  position: relative;
  border: 2px solid #95a4d133;
}

.experts-card:hover {
    z-index: 2;
}

.experts-card__main {
  position: relative;
  background-color: rgb(var(--bg-main));
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  padding: 30px 40px 30px;
  z-index: 1;
}

.experts-card__image-wrapper {
  height: 100%;
}

.experts-card__title {
  font-family: CeraRoundPro;
  line-height: 1.188;
  font-weight: 500;
  position: relative;
  padding-bottom: 10px;
}

.experts-card__position {
  padding: 10px 0;
  position: relative;
  width: 100%;
  font-family: CeraRoundPro;
  line-height: 1.188;
  font-weight: 500;
  font-size: 14px;
}

.experts-card__position::after {
  content: '';
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgb(var(--lilac), 0.4);
}

.experts-card__specialization {
  font-size: 14px;
  padding-top: 10px;
  margin-bottom: 10px;
}

.experts-card__text {
  color: rgba(53, 59, 75, 0.6);
  margin-top: 0;
  font-size: 0.875em;
  line-height: 1.214;
  margin: 10px 0 20px;
}

.doctor__experience {
  font-size: 14px;
  margin-bottom: 20px;
  display: inline-block;
}

.experts-card__button {
  margin-top: auto;
  min-width: 220px;
  padding: 8px 10px;
}

.experts-card__img-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.experts-card__stars {
  left: 10px;
  bottom: 30px;
  position: absolute;
}

.experts-card__informer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 8px 11px;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.2;
  color: #ffffff;
  background-color: rgba(149, 164, 209, 1);
}

.experts-card__competencies {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;

  max-width: 300px;
  max-height: 320px;
  overflow: auto;
  padding: 20px;

  border-radius: 5px;
  border: 2px solid #95a4d133;
  background-color: #ffffff;
}

.experts-card__competencies h3 {
  margin: 0;
  margin-bottom: 10px;

  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  color: rgba(53, 59, 75, 1);
}

.experts-card__competencies p {
  margin: 0;
  margin-bottom: 10px;

  font-weight: 400;
  font-size: 14px;
  line-height: 120%;

  color: rgba(53, 59, 75, 0.6);
}

.experts-card__competencies p:last-child {
  margin-bottom: 0;
}

@media (min-width: 425px) {
  .experts-card__click-img {
    display: none;
  }
}

@media (max-width: 425px) {
  .items {
    padding: 40px 0;
  }

  .experts-card {
    flex-direction: column;
  }

  .experts-card__image-wrapper {
    width: 100%;
    height: 224px;
  }

  .experts-card__play {
    top: 20px;
    left: 20px;
  }

  .experts-card__stars {
    left: 20px;
  }

  .experts-card__informer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .experts-card__stars:not(:has(+ .experts-card__informer)):not(.experts-card__informer + *) {
    bottom: 0;
  }

  .experts-card__img {
    width: 100%;
    height: calc(100% + 37px);
    object-position: top;
  }

  .experts-card__main {
    padding: 20px 20px 30px;
  }

  .experts-card__competencies {
    position: relative;
    max-width: 100%;
    border: none;
    border-top: 2px solid #95a4d133;
  }

  .experts-card__click-img {
    position: absolute;
    top: 20px;
    right: 24px;
  }
}
