.experts-page__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.experts-page__list-item {
  flex-basis: 100%;
}

@media screen and (min-width: 768px) {
  .experts-page__list {
    gap: 24px 20px;
  }

  .experts-page__list-item {
    flex-basis: calc((100% - 20px) / 2);
  }
}

@media screen and (min-width: 1440px) {
  .experts-page__list {
    gap: 32px 24px;
  }

  .experts-page__list-item {
    flex-basis: calc((100% - (24px * 3)) / 4);
  }
}

.expert-page__wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.expert-page__content {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--grey, #e7e7e7);
}

.expert-page__content-subtile {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
}

.expert-page__wrapper .social-media__link {
  width: 32px;
  height: 32px;
  background: var(--green-primary, #003629);
  color: var(--white, #fff);
}

.expert-page__wrapper .social-media__link svg {
  width: 20px;
  height: 20px;
}

.expert-page__img {
  display: flex;
  flex-shrink: 0;
  background: lightgray;
  width: 100%;
  height: auto;
  aspect-ratio: 343/455;
  object-fit: cover;
  overflow: hidden;
  border-radius: 12px;
}

.expert-page__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media screen and (min-width: 768px) {
  .expert-page__wrapper {
    gap: 32px;
  }

  .expert-page__content {
    padding: 24px;
  }

  .expert-page__img {
    aspect-ratio: 706/960;
    border-radius: 16px;
  }
}

@media screen and (min-width: 1440px) {
  .expert-page__wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .expert-page__content {
    gap: 32px;
    padding: 32px;
  }

  .expert-page__content-subtile {
    font-size: 24px;
  }

  .expert-page__img {
    max-width: 424px;
    aspect-ratio: 424 / 564;
  }

  .expert-page__head {
    position: relative;
  }

  .expert-page__head-title {
    margin-right: 252px;
  }

  .expert-page__wrapper .social-media__wrapper {
    justify-content: flex-end;
    position: absolute;
    top: 0;
    right: 0;
  }
}
