.doctor-card__photo {
  height: 395px;
  background: var(--soft);
  overflow: hidden;
}

.doctor-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 20%;
}

.doctor-card h3 {
  min-height: 48px;
  margin: 21px 0 5px;
  font-size: 17px;
}

.doctor-card p {
  min-height: 35px;
  color: var(--muted);
  font-size: 11px;
}

.doctor-card a {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 11px;
}

.inner-hero .case-card .doctor-card__photo {
  height: 585px;
}

.inner-hero .case-card .doctor-card__photo img {
  object-fit: contain;
  object-position: center bottom;
}

@media (max-width: 767px) {
  .doctor-card {
    scroll-snap-align: start;
  }

  .doctor-card__photo {
    height: 385px;
  }

  .inner-hero .case-card .doctor-card__photo {
    height: 420px;
  }
}

/* "Doctors" widget — shared by home-family routes and the single-service
   "doctors--home" teaser. .doctors--home always carries .doctors too, so the
   two variants are kept mutually exclusive with :not() instead of a
   data-layout/data-page attribute. */

.doctor-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px 20px 20px;
}

@media (min-width: 768px) and (max-width: 1359px) {
  .doctor-card__body {
    padding: 22px;
  }
}

@media (max-width: 767px) {
  .doctor-card__body {
    padding: 20px;
  }
}

.doctors:not(.doctors--home) .doctor-card a {
  --corner-color: #010f77;
  --corner-hover-color: #7c7c7c;
  --corner-inset: -1px;
  position: relative;
}

.doctors:not(.doctors--home) .doctor-card a::before,
.doctors:not(.doctors--home) .doctor-card a::after {
  position: absolute;
  width: 10px;
  height: 10px;
  background: transparent;
  pointer-events: none;
  content: "";
  transform-origin: center;
}

.doctors:not(.doctors--home) .doctor-card a::before {
  top: calc(100% - var(--corner-inset) - 10px);
  left: -2px;
  border-bottom: 2px solid var(--corner-color);
  border-left: 2px solid var(--corner-color);
}

.doctors:not(.doctors--home) .doctor-card a::after {
  top: -2px;
  left: calc(100% - var(--corner-inset) - 10px);
  border-top: 2px solid var(--corner-color);
  border-right: 2px solid var(--corner-color);
}

@media (hover: hover) {
  .doctors:not(.doctors--home) .doctor-card a:hover {
    --corner-color: #fff;
    color: #fff;
    background: #010f77;
    border-color: #010f77;
  }

  .doctors:not(.doctors--home) .doctor-card a:hover::before {
    animation: home-corner-before-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
  }

  .doctors:not(.doctors--home) .doctor-card a:hover::after {
    animation: home-corner-after-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
  }
}

.doctors:not(.doctors--home) .doctor-card a:focus-visible {
  --corner-color: #fff;
  color: #fff;
  background: #010f77;
  border-color: #010f77;
}

.doctors:not(.doctors--home) .doctor-card a:focus-visible::before {
  animation: home-corner-before-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
}

.doctors:not(.doctors--home) .doctor-card a:focus-visible::after {
  animation: home-corner-after-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
}

.doctors:not(.doctors--home) .doctor-card h3,
.doctors:not(.doctors--home) .doctor-card p {
  user-select: text;
}

.doctors:not(.doctors--home) .doctor-card {
  display: grid;
  min-height: 0;
  grid-template-columns: 277px 1fr;
  padding: 0;
  background: #fafafa;
}

.doctors:not(.doctors--home) .doctor-card__photo {
  grid-row: auto;
  position: relative;
  width: 277px;
  height: 345px;
  margin: 0;
  background: #eeeded;
}



.doctors:not(.doctors--home) .doctor-card h3 {
  min-height: 0;
  margin: 0 0 15px;
  font-size: 20px;
}

.doctors:not(.doctors--home) .doctor-card p {
  min-height: 0;
  margin: 0;
  color: rgba(48, 48, 48, .7);
  font-size: 14px;
  line-height: 1;
}

.doctors:not(.doctors--home) .doctor-card .doctor-card__bio {
  margin-top: 20px;
}

.doctors:not(.doctors--home) .doctor-card a {
  width: 220px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-top: 30px;
  border: 1px solid #c4c4c1;
  color: #303030;
  font-size: 14px;
}

@media (max-width: 1359px) and (min-width: 768px) {
  .doctors:not(.doctors--home) .doctor-card {
    display: grid;
    grid-template-columns: clamp(250px, calc(10.55vw + 127.6px), 271px) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .doctors:not(.doctors--home) .doctor-card__photo {
    width: 100%;
    height: 100%;
  }

  @media (min-width: 1160px) {
    .doctors:not(.doctors--home) .doctor-card__bio {
      display: -webkit-box;
      overflow: hidden;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 7;
    }
  }

  @media (min-width: 1250px) {
    .doctors:not(.doctors--home) .doctor-card__bio {
      -webkit-line-clamp: 10;
    }
  }

  @media (max-width: 1159px) {
    .doctors:not(.doctors--home) .doctor-card {
      grid-template-columns: clamp(320px, calc(10.23vw + 241.45px), 360px) minmax(0, 1fr);
    }
  }
}

@media (max-width: 767px) {
  .doctors:not(.doctors--home) .doctor-card {
    grid-template-columns: 1fr;
  }

  .doctors:not(.doctors--home) .doctor-card:is(.doctor-card--galstyan, .doctor-card--illarionova) {
    display: grid;
  }

  .doctors:not(.doctors--home) .doctor-card__photo {
    width: 100%;
    height: var(--doctor-mobile-photo-height);
  }

  .doctors:not(.doctors--home) .doctor-card h3 {
    font-size: 20px;
  }

  .doctors:not(.doctors--home) .doctor-card p {
    font-size: 14px;
  }

  .doctors:not(.doctors--home) .doctor-card a {
    width: 220px;
  }
}

@media (max-width: 340px) {
  .doctors:not(.doctors--home) .doctor-card h3 {
    white-space: normal;
  }
}

@media (min-width: 1360px) {
  .doctors:not(.doctors--home) .doctor-card {
    height: auto;
    min-height: 345px;
  }

  .doctors:not(.doctors--home) .doctor-card__photo {
    align-self: start;
  }

  .doctors:not(.doctors--home) .doctor-card__bio {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}

@media (min-width: 768px) and (max-width: 1359px) {
  .doctors:not(.doctors--home) .doctor-card {
    min-height: 345px;
  }

  .doctors:not(.doctors--home) .doctor-card__bio {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 767px) {
  .doctors:not(.doctors--home) .doctor-card {
    display: grid;
    height: auto;
    min-height: calc(var(--doctor-mobile-photo-height) + 340px);
    grid-template-rows: var(--doctor-mobile-photo-height) minmax(340px, auto);
    margin-bottom: 0;
    scroll-snap-align: start;
  }

  .doctors:not(.doctors--home) .doctor-card h3 {
    white-space: normal;
  }
}

@media (min-width: 1360px) {
  .doctors:not(.doctors--home) .doctor-card {
    grid-template-columns: 271px 1fr;
  }

  .doctors:not(.doctors--home) .doctor-card__photo {
    width: 271px;
  }
}

.doctors--home .doctor-card {
  display: grid;
  grid-template-columns: 277px minmax(0, 1fr);
  padding: 0;
  background: #fafafa;
}

.doctors--home .doctor-card__photo {
  position: relative;
  width: 277px;
  height: 345px;
  margin: 0;
  background: #eeeded;
  overflow: hidden;
}


.doctors--home .doctor-card h3 {
  min-height: 0;
  margin: 0 0 15px;
  color: #232742;
  font-size: 20px;
}

.doctors--home .doctor-card p {
  min-height: 0;
  margin: 0;
  color: rgba(48, 48, 48, .7);
  font-size: 14px;
  line-height: 1;
}

.doctors--home .doctor-card__bio {
  margin-top: 20px;
}

.doctors--home .doctor-card a {
  --corner-color: #010f77;
  --corner-inset: -1px;
  position: relative;
  display: grid;
  width: 220px;
  height: 44px;
  place-items: center;
  margin-top: auto;
  color: #303030;
  background: transparent;
  border: 1px solid #c4c4c1;
  font-size: 14px;
}

.doctors--home .doctor-card a::before,
.doctors--home .doctor-card a::after {
  position: absolute;
  width: 10px;
  height: 10px;
  background: transparent;
  pointer-events: none;
  content: "";
  transform-origin: center;
}

.doctors--home .doctor-card a::before {
  top: calc(100% - var(--corner-inset) - 10px);
  left: -2px;
  border-bottom: 2px solid var(--corner-color);
  border-left: 2px solid var(--corner-color);
}

.doctors--home .doctor-card a::after {
  top: -2px;
  left: calc(100% - var(--corner-inset) - 10px);
  border-top: 2px solid var(--corner-color);
  border-right: 2px solid var(--corner-color);
}

@media (hover: hover) {
  .doctors--home .doctor-card a:hover {
    --corner-color: #fff;
    color: #fff;
    background: #010f77;
    border-color: #010f77;
  }

  .doctors--home .doctor-card a:hover::before {
    animation: service-corner-before-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
  }

  .doctors--home .doctor-card a:hover::after {
    animation: service-corner-after-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
  }
}

.doctors--home .doctor-card a:focus-visible {
  --corner-color: #fff;
  color: #fff;
  background: #010f77;
  border-color: #010f77;
}

.doctors--home .doctor-card a:focus-visible::before {
  animation: service-corner-before-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
}

.doctors--home .doctor-card a:focus-visible::after {
  animation: service-corner-after-clockwise .58s cubic-bezier(.45, 0, .2, 1) both;
}

@media (min-width: 768px) and (max-width: 1359px) {
  .doctors--home .doctor-card {
    grid-template-columns: clamp(250px, calc(10.55vw + 127.6px), 271px) minmax(0, 1fr);
  }

  .doctors--home .doctor-card__photo {
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1159px) {
  .doctors--home .doctor-card {
    grid-template-columns: clamp(320px, calc(10.23vw + 241.45px), 360px) minmax(0, 1fr);
  }
}

@media (min-width: 1160px) and (max-width: 1249px) {
  .doctors--home .doctor-card__bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
  }
}

@media (min-width: 1250px) and (max-width: 1359px) {
  .doctors--home .doctor-card__bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
  }
}

@media (max-width: 767px) {
  .doctors--home .doctor-card:is(.doctor-card--galstyan, .doctor-card--illarionova) {
    display: grid;
  }

  .doctors--home .doctor-card__photo {
    width: 100%;
    height: var(--doctor-mobile-photo-height);
  }

  .doctors--home .doctor-card h3 {
    font-size: 20px;
  }

  .doctors--home .doctor-card p {
    font-size: 14px;
  }

  .doctors--home .doctor-card a {
    width: 220px;
  }
}

@media (max-width: 340px) {
  .doctors--home .doctor-card h3 {
    white-space: normal;
  }
}

@media (min-width: 768px) and (max-width: 1359px) {
  .doctors--home .doctor-card {
    min-height: 345px;
  }

  .doctors--home .doctor-card__bio {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}

@media (max-width: 767px) {
  .doctors--home .doctor-card {
    height: auto;
  }

  .doctors--home .doctor-card h3 {
    white-space: normal;
  }
}

@media (min-width: 1360px) {
  .doctors--home .doctor-card {
    height: auto;
    min-height: 345px;
  }

  .doctors--home .doctor-card__photo {
    align-self: start;
  }

  .doctors--home .doctor-card__bio {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}

.doctors--home .doctor-card {
  height: auto;
  min-height: 345px;
}

.doctors--home .doctor-card__bio {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

@media (max-width: 767px) {
  .doctors--home .doctor-card {
    display: grid;
    min-height: calc(var(--doctor-mobile-photo-height) + 340px);
    grid-template-columns: 1fr;
    grid-template-rows: var(--doctor-mobile-photo-height) minmax(340px, auto);
    margin-bottom: 0;
    scroll-snap-align: start;
  }
}