/* ============================================================
   КОРНЕВОЙ БЛОК
   ============================================================ */
.medteam {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 70px 20px 90px;
  font-family: 'Inter', sans-serif;
  background: #F3F2ED;
  box-sizing: border-box;
}

.medteam *,
.medteam *::before,
.medteam *::after {
  box-sizing: border-box;
}

.medteam::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: #F3F2ED;
    /*radial-gradient(55% 45% at 15% 5%,  rgba(255, 255, 255, 0.9) 0%, transparent 70%),
    radial-gradient(45% 55% at 92% 95%, rgba(214, 208, 196, 0.45) 0%, transparent 70%);*/
}

/* ============================================================
   ВНЕШНЯЯ ПОДЛОЖКА
   ============================================================ */
.medteam .medteam__shell {
  position: relative;
  z-index: 1;
  max-width: 1260px;
  margin: 0 auto;
  padding: 40px 50px;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ============================================================
   ЗАГОЛОВОК СЕКЦИИ
   ============================================================ */
.medteam .medteam__title {
  margin: 0 0 30px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  color: #3A3737;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
}

/* ============================================================
   СЛАЙДЕР — критичные свойства с !important
   ============================================================ */
.medteam .medteam__slider,
.medteam .medteam__slider.swiper {
  overflow: hidden !important;
  padding: 8px 0;
  margin: 0 -6px;
}

/* Обёртка: жёстко растягиваем слайды на всю высоту */
.medteam .medteam__slider .swiper-wrapper {
  align-items: stretch !important;
  height: auto !important;
}

/* Слайд: убиваем height: 100% от Swiper и темы */
.medteam .medteam__slider .swiper-slide,
.medteam .medteam__slider .swiper-slide.medteam__slide,
.medteam .medteam__slide {
  height: auto !important;
  display: flex;
  box-sizing: border-box;
  padding: 0 6px;
}

/* ============================================================
   КАРТОЧКА
   ============================================================ */
.medteam .medteam__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 16px;
  border-radius: 18px;

  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.82) 55%,
    rgba(255, 255, 255, 0.72) 100%
  );

  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid rgba(58, 55, 55, 0.06);
  outline-offset: -1px;
}

/* ============================================================
   ФОТО / PLAY / ТЕКСТ / КНОПКИ
   ============================================================ */
.medteam .medteam__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(230, 227, 220, 0.6);
}
.medteam .medteam__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.medteam .medteam__play {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}
.medteam .medteam__play:hover { transform: scale(1.06); background: #fff; }
.medteam .medteam__play svg   { width: 20px; height: 20px; display: block; }

.medteam .medteam__content { display: flex; flex-direction: column; flex: 1; }

.medteam .medteam__name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #3A3737;
  line-height: 1.3;
}

.medteam .medteam__role {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #24AAE1;
  line-height: 1.4;
}

.medteam .medteam__meta {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.medteam .medteam__meta-item {
  font-size: 13px;
  color: #3A3737;
  line-height: 1.45;
}
.medteam .medteam__meta-item strong { font-weight: 600; }

.medteam .medteam__actions { display: flex; gap: 10px; margin-top: auto; }

.medteam .medteam__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 38px;
  border-radius: 40px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #24AAE1;
  background: rgba(255, 255, 255, 0.55);
  border: 1.5px solid #24AAE1;
  text-align: center;
  transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease;
}
.medteam .medteam__btn:hover  { background: #24AAE1; color: #fff; }
.medteam .medteam__btn:active { transform: scale(0.97); }

/* ============================================================
   ПАГИНАЦИЯ — дробная (01 / 24)
   ============================================================ */
.medteam .medteam__pagination,
.medteam .medteam__pagination.swiper-pagination {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-top: 26px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3A3737;
  user-select: none;
  position: static;
  width: auto;
  bottom: auto;
}
.medteam .medteam__pagination .swiper-pagination-current {
  color: #24AAE1;
  font-size: 18px;
  font-weight: 700;
}
.medteam .medteam__pagination .swiper-pagination-total {
  opacity: 0.5;
}
.medteam .medteam__pagination-sep {
  opacity: 0.3;
  margin: 0 2px;
  font-weight: 400;
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ВИДЕО
   ============================================================ */
.medteam-video {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
}
.medteam-video--open { display: flex; }
.medteam-video__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.medteam-video__box {
  position: relative;
  width: 90%;
  max-width: 800px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  z-index: 1;
}
.medteam-video__close {
  position: absolute;
  top: 6px;
  right: 14px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.medteam-video__close:hover { transform: scale(1.15); }
#medteamVideoPlayer {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
}

/* ============================================================
   АДАПТИВНОСТЬ — ПЛАНШЕТ
   ============================================================ */
@media (max-width: 992px) {
  .medteam .medteam__shell { padding: 30px 32px 34px; border-radius: 22px; }
  .medteam .medteam__title { font-size: 21px; margin-bottom: 26px; }
  .medteam .medteam__card  { padding: 13px 13px 15px; }
  .medteam .medteam__name  { font-size: 16px; }
  .medteam .medteam__role  { font-size: 13px; }
  .medteam .medteam__meta-item { font-size: 12px; }
  .medteam .medteam__btn   { font-size: 13px; padding: 8px 12px; }
}

/* ============================================================
   АДАПТИВНОСТЬ — МОБИЛЬНЫЙ
   ============================================================ */
@media (max-width: 600px) {
  .medteam { padding: 40px 12px 60px; }

  .medteam .medteam__shell {
    padding: 22px 20px 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.25);
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }

  .medteam .medteam__title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .medteam .medteam__slider { padding: 4px 0 6px; margin: 0 -4px; }

  .medteam .medteam__slider .swiper-slide,
  .medteam .medteam__slider .swiper-slide.medteam__slide,
  .medteam .medteam__slide  { padding: 0 4px; }

  .medteam .medteam__card { padding: 13px 13px 15px; border-radius: 16px; }

  .medteam .medteam__photo { border-radius: 10px; margin-bottom: 12px; }

  .medteam .medteam__name  { font-size: 16px;   margin-bottom: 5px; }
  .medteam .medteam__role  { font-size: 14px;   margin-bottom: 10px; line-height: 1.4; }
  .medteam .medteam__meta  { gap: 4px;          margin-bottom: 12px; }
  .medteam .medteam__meta-item { font-size: 13px; line-height: 1.45; }

  .medteam .medteam__actions {
    gap: 8px;
    flex-wrap: wrap;
  }
  .medteam .medteam__btn {
    padding: 8px 10px;
    min-height: 36px;
    font-size: 13px;
    white-space: nowrap;
    min-width: 0;
  }

  .medteam .medteam__play { width: 32px; height: 32px; top: 8px; left: 8px; }
  .medteam .medteam__play svg { width: 18px; height: 18px; }

  .medteam .medteam__pagination {
    margin-top: 22px;
    gap: 6px;
    font-size: 14px;
  }
  .medteam .medteam__pagination .swiper-pagination-current {
    font-size: 17px;
  }

  .medteam-video__box { padding: 10px; border-radius: 16px; }
  .medteam-video__close { font-size: 26px; top: 2px; right: 10px; }
}