/* Блок «Кто ведёт курс».

   Единственное место на странице, где продают не курс, а человека. Раньше он
   делал это одним абзацем: имя, роль и семь строк текста, в которых тонули
   регалии. Теперь имя и роль — подписью на снимке, рядом остаётся место
   для списка достижений, а под ним — строка про верхний тариф. */

/* Раскладка карточки. Прежние правила остались от оформления, где снимок
   наезжал на тёмную плашку: отсюда сдвиг вниз на 30 px и отступ справа
   в 100 px. Плашки нет, а сдвиг остался — снимок и текст стояли на разной
   высоте. */

.teacher-b .teacher-container.teacher-container--solo .teacher-item {
  gap: 32px;
  align-items: flex-start;
}

.teacher-b .teacher-container.teacher-container--solo .teacher-item .img {
  top: 0;
  margin-bottom: 0;
  width: 320px;
  flex: 0 0 320px;
}

.teacher-b .teacher-container.teacher-container--solo .teacher-item .img .bg {
  width: 100%;
  padding-bottom: 0;
  aspect-ratio: 3 / 4;
}

.teacher-b .teacher-container.teacher-container--solo .teacher-item .text {
  padding: 0;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 720px;
}

/* Имя и роль ушли на снимок — в текстовой колонке они больше не выводятся */
.teacher-b .teacher-container.teacher-container--solo .teacher-item .text .name,
.teacher-b .teacher-container.teacher-container--solo .teacher-item .text .spec {
  display: none;
}

.teacher-b .teacher-container.teacher-container--solo .teacher-item .text .description {
  font-size: 16px;
  line-height: 25px;
}

@media only screen and (max-width: 767px) {
  .teacher-b .teacher-container.teacher-container--solo .teacher-item {
    gap: 20px;
  }

  .teacher-b .teacher-container.teacher-container--solo .teacher-item .img {
    width: 100%;
    flex: 0 0 auto;
  }

  .teacher-b .teacher-container.teacher-container--solo .teacher-item .text {
    padding: 0;
    max-width: none;
  }
}

/* Отступ от заголовка до содержимого — как в остальных блоках страницы:
   28 px. Здесь оставалось 15 px, и блок читался теснее соседних. */
.teacher-b .title {
  margin-bottom: 28px;
}

@media only screen and (max-width: 575px) {
  .teacher-b .title {
    margin-bottom: 20px;
  }
}

/* Заголовок как во всех блоках: Lora 600 вместо Manrope 900 */
.teacher-b .title h1,
.teacher-b .title h2,
.teacher-b .title h3,
.teacher-b .title h4,
.teacher-b .title h5,
.teacher-b .title h6 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 48px;
}

.teacher-b .teacher-item .img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}

.teacher-b .teacher-item .img .bg {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
}

/* Подпись поверх снимка — тем же приёмом, что у работ студентов */
.teacher-b .teacher-item .teacher__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(23, 31, 38, 0) 0%, rgba(23, 31, 38, .8) 62%);
}

.teacher-b .teacher-item .teacher__caption b {
  display: block;
  font-weight: 600;
  font-size: 17px;
  line-height: 24px;
}

.teacher-b .teacher-item .teacher__caption span {
  display: block;
  font-size: 13.5px;
  line-height: 19px;
  opacity: .9;
}

.teacher-b .teacher-item .text .description {
  font-size: 16px;
  line-height: 25px;
  color: #52606D;
}

/* Регалии списком: они и есть содержание блока */
.teacher-b .teacher-item .text .description ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.teacher-b .teacher-item .text .description ul li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 24px;
}

.teacher-b .teacher-item .text .description ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 10.5l4 4 8-8' stroke='%2300BB5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Цитата от первого лица, если её оформили в тексте */
.teacher-b .teacher-item .text .description blockquote {
  margin: 18px 0 0;
  background: #fff;
  border: 1px solid #E7E1D8;
  border-radius: 12px;
  padding: 18px 20px;
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 26px;
  color: #171F26;
}

/* Строка про верхний тариф: здесь регалии становятся доводом к покупке */
.teacher-b .teacher-item .teacher__highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-top: 20px;
  background: #FFFCF4;
  border: 1px solid #F0DFB6;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  line-height: 22px;
  color: #171F26;
  text-decoration: none;
}

.teacher-b .teacher-item .teacher__highlight:hover {
  border-color: #F5B53D;
}

.teacher-b .teacher-item .teacher__highlight b {
  font-weight: 700;
  white-space: nowrap;
}

.teacher-b .teacher-item .teacher__highlight span {
  color: #52606D;
}

@media only screen and (max-width: 575px) {
  .teacher-b .title h1,
  .teacher-b .title h2,
  .teacher-b .title h3 {
    font-size: 26px;
    line-height: 32px;
  }

  .teacher-b .teacher-item .text .description,
  .teacher-b .teacher-item .text .description ul li {
    font-size: 15px;
    line-height: 23px;
  }
}
