/* Align the visible heads and portrait bases without cropping the native PNGs. */
.noviv-doctors-section { scroll-margin-top: 100px; }
body .noviv-v5.noviv-v10 section.noviv-doctors-section[aria-labelledby="v5-doctors-title"]::before { display: none !important; }
.noviv-doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  width: min(1000px, 100%);
  margin-inline: auto;
  padding-top: 12px;
  gap: 0;
  overflow: visible;
  isolation: isolate;
}
.noviv-doctor-card {
  position: relative;
  z-index: auto;
  justify-self: center;
  width: calc(100% + 40px);
  max-width: 300px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.noviv-doctor-card__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 15 / 19;
  margin-inline: auto;
  min-width: 0;
  overflow: visible;
  background: transparent;
}
.noviv-doctor-card__photo {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: block;
  width: auto;
  max-width: none;
  height: calc(100% * var(--noviv-portrait-canvas-scale));
  max-height: none;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center;
}
/* Scales remove only transparent top padding from the visual alignment. */
.noviv-doctor-card__photo[data-doctor-cutout="spitsin"] { --noviv-portrait-canvas-scale: 1.1419656786; }
.noviv-doctor-card__photo[data-doctor-cutout="zobnina"] { --noviv-portrait-canvas-scale: 1.0608695652; }
.noviv-doctor-card__photo[data-doctor-cutout="bazarova-2"] { --noviv-portrait-canvas-scale: 1.0187891441; }
.noviv-doctor-card__photo[data-doctor-cutout="vladykinaeo"] { --noviv-portrait-canvas-scale: 1.0828402367; }
body .noviv-v5 .noviv-doctor-card__link {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 34px;
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(3px);
  color: #203342 !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(32,51,66,.06);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body .noviv-v5 .noviv-doctor-card__link:hover { background: rgba(255,255,255,.92); border-color: var(--noviv-brand); box-shadow: 0 3px 12px rgba(var(--noviv-brand-rgb),.14); }
.noviv-doctor-card__copy {
  width: calc(100% - 24px);
  max-width: 240px;
  min-width: 0;
  margin: 11px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}
body .noviv-v5 .noviv-doctor-card__name,
body .noviv-v5 .noviv-doctor-card__name a {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #203342 !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
}
body .noviv-v5 .noviv-doctor-card__name a:hover { text-decoration: underline; }
body .noviv-v5 .noviv-doctor-card__name a { display: block; }
.noviv-doctor-card__surname,
.noviv-doctor-card__given { display: block; white-space: nowrap; }
.noviv-doctors-footer { display: flex; justify-content: flex-end; margin-top: 26px; }
body .noviv-v5 .noviv-doctors-footer a { color: #52636e; font-size: 14px; text-decoration: none; }
.noviv-doctors-grid a:focus-visible,
.noviv-doctors-footer a:focus-visible { outline: 2px solid #203342; outline-offset: 4px; }
.noviv-doctor-card:focus-within { z-index: 4; }
@media (min-width: 1200px) {
  .noviv-doctor-card:nth-child(3) { left: -18px; }
  .noviv-doctor-card:nth-child(4) { left: -36px; }
}
@media (max-width: 1199px) {
  .noviv-doctors-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(560px, 100%); gap: 28px 0; }
  .noviv-doctor-card { width: 100%; }
  body .noviv-v5 .noviv-doctor-card__name,
  body .noviv-v5 .noviv-doctor-card__name a { font-size: 17px; }
}
@media (max-width: 539px) {
  .noviv-doctors-grid { grid-template-columns: 1fr; width: min(330px, 100%); gap: 30px; }
}
@media (prefers-reduced-motion: reduce) { body .noviv-v5 .noviv-doctor-card__link { transition: none; } }
