[data-service-doctors].sd-team,
[data-service-doctors].sd-team * {
  box-sizing: border-box;
}

[data-service-doctors].sd-team {
  --sys-support-soft: #ecebfa;
  --sys-dark: #241f31;
  --sys-dark-2: #302a40;
  --sys-action: #f0733f;
  --sys-action-deep: #d85d2d;
  --sd-white: #fffefc;
  width: 100%;
  overflow: visible;
  background: transparent;
  color: var(--sys-dark);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
}

[data-service-doctors] .sd-team__inner {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-block: 76px;
}

[data-service-doctors] .sd-team__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

[data-service-doctors] :is(.sd-team__title, .sd-team__name, .sd-team__role, .sd-team__meta) {
  margin: 0;
}

[data-service-doctors] .sd-team__title {
  max-width: 620px;
  color: var(--sys-dark);
  font-size: clamp(38px, 4.1vw, 54px);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

[data-service-doctors] .sd-team__carousel {
  margin-top: 28px;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--sys-support-soft);
}

[data-service-doctors] .sd-team__controls {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
  margin-left: auto;
}

[data-service-doctors] .sd-team__control {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(36, 31, 49, 0.18);
  border-radius: 50%;
  background: var(--sd-white);
  color: var(--sys-dark);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

[data-service-doctors] .sd-team__control svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[data-service-doctors] .sd-team__control:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--sys-dark);
  background: var(--sys-dark);
  color: #fff;
}

[data-service-doctors] .sd-team__control:disabled {
  opacity: 0.3;
  cursor: default;
}

[data-service-doctors] .sd-team__track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  list-style: none;
}

[data-service-doctors] .sd-team__track::-webkit-scrollbar {
  display: none;
}

[data-service-doctors] .sd-team__item {
  display: flex;
  flex: 0 0 calc((100% - 42px) / 4);
  min-width: 0;
  aspect-ratio: 2 / 3;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

[data-service-doctors] .sd-team__card {
  isolation: isolate;
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--sys-support-soft);
  box-shadow: 0 1px 0 rgba(36, 31, 49, 0.04);
}

[data-service-doctors] .sd-team__image {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--sd-image-position, center top);
  transition: transform 220ms ease;
}

[data-service-doctors] .sd-team__card:hover .sd-team__image {
  transform: scale(1.02);
}

[data-service-doctors] .sd-team__shade {
  position: absolute;
  z-index: 2;
  inset: 30% 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(29, 25, 38, 0.18) 26%, rgba(29, 25, 38, 0.93) 100%);
  pointer-events: none;
}

[data-service-doctors] .sd-team__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 80px 16px 18px;
  color: #fff;
}

[data-service-doctors] .sd-team__name {
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

[data-service-doctors] .sd-team__role {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.36;
}

[data-service-doctors] .sd-team__meta {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 9.5px;
  font-weight: 620;
  line-height: 1.35;
}

[data-service-doctors] .sd-team__profile,
[data-service-doctors] .sd-team__video {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 254, 252, 0.92);
  box-shadow: 0 10px 28px rgba(24, 21, 31, 0.14);
  color: var(--sys-dark-2);
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

[data-service-doctors] .sd-team__profile {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  max-width: calc(100% - 28px);
  padding: 0 10px;
  font-size: 9px !important;
  font-weight: 600;
  line-height: 1;
}

[data-service-doctors] .sd-team__video {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 12px 6px 7px;
  font-size: 10px;
  line-height: 1;
}

[data-service-doctors] .sd-team__video svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

[data-service-doctors] .sd-team__video span {
  font-size: 10px;
  line-height: 1;
}

[data-service-doctors] .sd-team__video circle {
  fill: var(--sys-action);
}

[data-service-doctors] .sd-team__video path {
  fill: #fff;
}

[data-service-doctors] :is(.sd-team__profile, .sd-team__video):hover {
  transform: translateY(-2px);
  border-color: #fff;
  background: #fff;
}

[data-service-doctors] :is(.sd-team__control, .sd-team__track, .sd-team__profile, .sd-team__video):focus-visible,
.sd-team__modal :is(.sd-team__modal-close, .sd-team__iframe):focus-visible {
  outline: 3px solid rgba(240, 115, 63, 0.5);
  outline-offset: 3px;
}

.sd-team__modal[hidden] {
  display: none !important;
}

.sd-team__modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(16, 14, 19, 0.96);
}

.sd-team__dialog {
  position: relative;
  width: min(430px, calc(56.25dvh - 62px), calc(100vw - 44px));
  color: #fff;
}

.sd-team__video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #0c0b0e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.sd-team__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #111;
}

.sd-team__modal-close {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(20, 18, 23, 0.76);
  color: #fff;
  font: 400 25px/1 Manrope, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.sd-team__video-meta {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 62px 20px 18px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(transparent, rgba(9, 8, 11, 0.9));
  pointer-events: none;
}

.sd-team__video-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
}

.sd-team__video-caption {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

body.sd-team-video-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (min-width: 1001px) and (max-width: 1100px) {
  [data-service-doctors] .sd-team__profile {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 8px !important;
  }

  [data-service-doctors] .sd-team__video {
    gap: 5px;
    min-height: 34px;
    padding: 4px 8px 4px 5px;
    font-size: 9px;
  }

  [data-service-doctors] .sd-team__video svg {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }
}

@media (max-width: 1000px) {
  [data-service-doctors] .sd-team__item {
    flex-basis: calc((100% - 14px) / 2);
  }
}

@media (max-width: 700px) {
  [data-service-doctors] .sd-team__inner {
    padding-block: 58px;
  }

  [data-service-doctors] .sd-team__header {
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
  }

  [data-service-doctors] .sd-team__title {
    flex: 1 0 100%;
    font-size: clamp(34px, 10vw, 42px);
  }

  [data-service-doctors] .sd-team__carousel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
  }

  [data-service-doctors] .sd-team__control {
    width: 42px;
    height: 42px;
  }

  [data-service-doctors] .sd-team__track {
    gap: 12px;
  }

  [data-service-doctors] .sd-team__item {
    flex: 0 0 min(82vw, 310px);
    min-width: min(82vw, 310px);
  }

  [data-service-doctors] .sd-team__content {
    padding: 82px 16px 17px;
  }

  [data-service-doctors] .sd-team__name {
    font-size: 17px;
  }

  [data-service-doctors] .sd-team__role {
    font-size: 11.5px;
  }

  [data-service-doctors] .sd-team__profile,
  [data-service-doctors] .sd-team__video {
    top: 12px;
  }

  [data-service-doctors] .sd-team__profile {
    left: 12px;
  }

  [data-service-doctors] .sd-team__video {
    right: 12px;
  }

  .sd-team__modal {
    padding: 12px;
  }

  .sd-team__dialog {
    width: min(430px, calc(56.25dvh - 30px), calc(100vw - 24px));
  }

  .sd-team__video-frame {
    border-radius: 14px;
  }

  .sd-team__video-meta {
    display: block;
    padding: 60px 16px 15px;
    border-radius: 0 0 14px 14px;
  }

  .sd-team__video-caption {
    display: block;
    margin-top: 5px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-service-doctors] .sd-team__track {
    scroll-behavior: auto;
  }

  [data-service-doctors] :is(.sd-team__control, .sd-team__image, .sd-team__profile, .sd-team__video) {
    transition: none;
  }
}
