/* teachers.html — оригинальные размеры карточек педагогов */
.course-header-body--teachers-only {
  width: 100%;
}

.course-header-author--full {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.authors-swiper--full {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  padding-inline: 0;
}

.authors-swiper--full .course-authors-swiper {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
}

.authors-swiper--full .authors-swiper-arrow--prev {
  grid-column: 1;
  grid-row: 1;
}

.authors-swiper--full .authors-swiper-arrow--next {
  grid-column: 3;
  grid-row: 1;
}

.authors-swiper--full.authors-swiper--single {
  grid-template-columns: minmax(0, 1fr);
}

.authors-swiper--full.authors-swiper--single .course-authors-swiper {
  grid-column: 1;
}

.course-header-author .authors-swiper-arrow {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #e8e8ec;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  color: #3a3a3e;
  cursor: pointer;
  transform: none;
  justify-self: center;
  flex-shrink: 0;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.authors-swiper--full.authors-swiper--single .authors-swiper-arrow {
  display: none;
}

.course-header-author .authors-swiper-arrow:hover {
  background: #f8f9ff;
  border-color: #d8d6fc;
  color: #3d39f4;
  box-shadow: 0 3px 10px rgba(61, 57, 244, 0.12);
}

.course-header-author .authors-swiper .swiper-wrapper {
  align-items: stretch;
}

.course-header-author .teacher-card {
  background: #fbfbfc;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #ececf0;
  box-shadow: 0 2px 10px rgba(44, 42, 57, 0.05);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.course-header-author .teacher-card-top {
  margin: 6px 6px 0;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  background: #e8f4fc;
  border-radius: 16px;
  box-sizing: border-box;
  height: 126px;
  min-height: 126px;
}

.course-header-author .teacher-card-top .photo {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 18%;
  border: none;
  box-shadow: none;
}

.course-header-author .teacher-card-top .head-text {
  min-width: 0;
  flex: 1;
}

.course-header-author .teacher-card-top h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.18;
  margin: 0 0 4px;
  color: #111113;
  word-break: normal;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-header-author .teacher-card-top .role {
  font-size: 14px;
  color: #4a4a4e;
  line-height: 1.35;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-header-author .teacher-card-body {
  padding: 10px 18px 18px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #fbfbfc;
}

.course-header-author .teacher-card-body .bio {
  font-size: 14px;
  line-height: 1.5;
  color: #4a4a4e;
  margin: 0 0 16px;
  word-break: normal;
  overflow-wrap: break-word;
}

.course-header-author .teacher-card-body .stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.course-header-author .teacher-card-body .stat {
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
}

.course-header-author .teacher-card-body .stat .num {
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  color: #111113;
}

.course-header-author .teacher-card-body .stat .lbl {
  font-size: 11px;
  color: #8a8a90;
  margin-top: 5px;
}

.course-header-author .teacher-card-body .tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: auto;
  padding-top: 6px;
  line-height: 1.4;
}

.course-header-author .teacher-card-body .chip {
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5a5a60;
}

.course-header-author .teacher-card-body .chip:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: #b8b8be;
  font-weight: 400;
}

.course-header-author .authors-swiper .swiper-slide {
  height: auto;
  box-sizing: border-box;
}

.course-header-author .authors-swiper .swiper-slide::after {
  display: none !important;
}

.course-header-author .authors-swiper .swiper-slide-active {
  transform: none !important;
  z-index: auto;
}

.course-header-author .authors-swiper .swiper-slide > div,
.course-header-author .authors-swiper .swiper-slide > section {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  width: 100%;
  height: 100%;
}

.course-header-author .authors-swiper .swiper-button-prev,
.course-header-author .authors-swiper .swiper-button-next {
  display: none !important;
}

@media (max-width: 768px) {
  .authors-swiper--full {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 10px 20px;
    align-items: center;
  }

  .authors-swiper--full .course-authors-swiper {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .authors-swiper--full .authors-swiper-arrow--prev {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
  }

  .authors-swiper--full .authors-swiper-arrow--next {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .course-header-author .authors-swiper-arrow {
    width: 36px;
    height: 36px;
  }

  .course-header-author .teacher-card-top {
    margin: 4px 4px 0;
    padding: 14px 12px 12px;
    gap: 12px;
    height: 110px;
    min-height: 110px;
  }

  .course-header-author .teacher-card-top .photo {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .course-header-author .teacher-card-top h2 {
    font-size: 17px;
    line-height: 1.22;
  }

  .course-header-author .teacher-card-top .role {
    font-size: 13px;
  }

  .course-header-author .teacher-card-body {
    padding: 8px 12px 14px;
  }

  .course-header-author .teacher-card-body .stats {
    gap: 8px;
  }

  .course-header-author .teacher-card-body .stat {
    padding: 10px 6px;
    border-radius: 12px;
  }

  .course-header-author .teacher-card-body .stat .num {
    font-size: 17px;
  }

  .course-header-author .teacher-card-body .stat .lbl {
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .course-header-author .teacher-card-body .chip {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .authors-swiper--full {
    gap: 8px 16px;
  }

  .course-header-author .authors-swiper-arrow {
    width: 32px;
    height: 32px;
  }

  .course-header-author .teacher-card-top {
    padding: 12px 10px 10px;
    gap: 10px;
    height: 102px;
    min-height: 102px;
  }

  .course-header-author .teacher-card-top .photo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .course-header-author .teacher-card-top h2 {
    font-size: 16px;
  }
}
