/* Specialist portraits supplied for the November 2026 team update. */
.specialist-list__head-block .main-img {
  width: 500px;
  object-fit: contain;
  object-position: center bottom;
}
.specialist-card__wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.specialist-card {
  overflow: hidden;
}
.specialist-card > img {
  width: 360px;
  height: calc(100% - 40px);
  object-fit: cover;
  object-position: center top;
}
.specialist-list__item:nth-child(3) .specialist-card {
  border-radius: 15px;
}
.specialist-list__item:nth-child(3) .specialist-card__wrap {
  border-radius: 20px;
}
.specialist .main-card {
  width: 24%;
}
.specialist .main-card__img img {
  object-fit: contain;
}
.specialist-child__card button {
  display: block;
  width: 100%;
  height: 100%;
}
.specialist-child__card:focus-within {
  outline: 2px solid #d9bd3f;
  outline-offset: 3px;
}
@media screen and (max-width: 1200px) and (min-width: 1025px) {
  .specialist-list__head-block .main-img { width: 440px; }
  .specialist-card { padding-left: 310px; padding-right: 25px; }
  .specialist-card > img { width: 280px; left: 10px; }
}
@media screen and (max-width: 1024px) {
  .specialist-parent { max-width: 390px; margin-left: auto; margin-right: auto; }
  .specialist-parent .swiper { overflow: hidden; padding: 12px; margin: -12px; }
  .specialist-parent .swiper-wrapper { align-items: flex-start; }
  .specialist-parent .specialist-parent__head { height: clamp(420px, calc((100vw - 30px) * 1.44), 562px); }
  .specialist-parent__head .card-img {
    top: 0;
    width: 110%;
    min-width: 0;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .specialist-parent__card .card-img {
    width: 100%;
    min-width: 0;
    max-width: 350px;
  }
  .specialist-child__card img {
    bottom: auto;
    top: 7px;
    height: 125%;
    object-fit: cover;
    object-position: center top;
  }
  .specialist-child__card:first-child img {
    top: -6px;
    left: -15%;
    width: 130%;
    max-width: none;
    height: auto;
  }
  .specialist .swp-navigation { display: flex !important; }
}
@media screen and (max-width: 360px) {
  .specialist-parent__card { padding: 220px 16px 16px; }
  .specialist-parent__card .card-content { padding: 16px 12px; }
  .specialist-parent__head-content { padding: 18px 10px; }
  .specialist-parent__head-content p { font-size: 12px; }
}
