.section-second-about {
  padding-inline: 3%;
}

.section-second__title {
  margin: var(--section-top);
  text-align: center;
  color: var(--text_color_fon_light);
  font-size: var(--font-h2);
  font-weight: var(--font-weight_title-H2);
}

.section-second__container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 100%;
  min-height: 90%;
  margin-bottom: 30px;
}

.section-second__konstantin_rank,
.section-second__lebedev_rank {
  display: flex;
  flex-direction: column;
  width: 50%;
}

@media (max-width: 913px) {
  .section-second__konstantin_rank
  .section-second__lebedev_rank {
    width: 100%;
  }
}

.section-second__konstantin_surname h3,
.section-second__title_kirill-surname h3,
.section-second__lebedev_surname h3 {
  margin: 0; /* убираем стандартные отступы */
  line-height: 1.3; /* чуть увеличим межстрочный интервал */
  /*font-weight: 600;        !* делаем надпись выразительнее *!*/
}

.section-second__konstantin_surname .konstantin_surname,
.section-second__title_kirill-surname .kirill_surname,
.section-second__lebedev_surname .lebedev_surname {
  display: block; /* каждый span занимает отдельную строку */
}

.section-second__konstantin_surname .konstantin_surname:first-child,
.section-second__title_kirill-surname .kirill_surname:first-child,
.section-second__lebedev_surname .lebedev_surname:first-child {
  white-space: nowrap; /* фамилия не переносится внутри строки */
  /*font-weight: 700;        !* можно сделать жирнее *!*/
}

.section-second__konstantin_surname .konstantin_surname:last-child,
.section-second__title_kirill-surname .kirill_surname:last-child,
.section-second__lebedev_surname .lebedev_surname:last-child {
  margin-top: 2px; /* небольшой отступ вниз, если хочешь */
  /*font-weight: 500;*/
}


.section-second__img-konstantin,
.section-second__img-lebedev,
.section-second__img-lebedev {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  width: 45%;

}

.section-second__konstantin_photo,
.section-second__kirill-photo,
.section-second__lebedev_photo {
  text-align: center;
}

.section-second__konstantin_photo img,
.section-second__kirill-photo img,
.section-second__img-lebedev img {
  border-radius: 15px;
}

.section-second__konstantin_rank,
.section-second__kirill-rank,
.section-second__lebedev_rank {
  color: var(--text_color_fon_light);
  font-size: var(--font-h4);
  font-weight: var(--font-weight_rank-H4);
  text-align: center;
  letter-spacing: 1px;
}

.section-second__konstantin_education,
.section-second__lebedev_education {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 55%;
  gap: 45px;
}

.section-second__konstantin_surname,
.section-second__title_kirill-surname,
.section-second__lebedev_surname {
  color: var(--text_color_fon_light);
  font-size: var(--subtitle-h3);
  font-weight: var(--font-weight_subtitle-H3);
  letter-spacing: 4px;
  text-align: left;
}

.section-second__konstantin_surname,
.section-second__lebedev_surname {
  letter-spacing: 0;
}

.section-second__konstantin_surname h3,
.section-second__title_kirill-surname h3 {
  /*margin: 0;*/
}

.section-second__konstantin_card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 35px;
}

.konstantin_card_1,
.konstantin_card_2,
.konstantin_card_3,
.lebedev_card_1 {
  width: 90%;
  border-radius: var(--border-radius);
  border: 1px solid #ffffff;
  text-align: left;
  background-color: var(--background_card);
  padding: 35px 66px;
  color: var(--text_color_fon_light);
  font-size: var(--font-p);
  font-weight: var(--font-weight_text-P);
}

.section-second__kirill {
  display: flex;
  justify-content: space-between;
  align-content: center;
  margin: 40px 0 40px 0;
}

.section-second__container_kirill-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 55%;
  letter-spacing: 2px;
  gap: 45px;
}

.section-second__kirill_card {
  width: 90%;
  border: 1px solid #ffffff;
  padding: 35px 64px;
  background-color: var(--background_card);
  text-align: start;
  border-radius: var(--border-radius);
}

.kirill_card {
  color: var(--text_color_fon_light);
  font-size: var(--font-p);
  font-weight: var(--font-weight_text-P);
}

.section-second__container_kirill-right {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: space-around;
  align-items: center;
  width: 45%;
}

@media (max-width: 1030px) {
  .konstantin_card_1,
  .konstantin_card_2,
  .konstantin_card_3,
  .lebedev_card_1,
  .section-second__kirill_card {
    width: 100%;
  }
}

@media (max-width: 990px) {
  .section-second__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
  }

  .section-second__konstantin_education,
  .section-second__lebedev_education,
  .section-second__container_kirill-left {
    gap: 20px;
  }

  .section-second__konstantin_rank,
  .section-second__lebedev_rank,
  .section-second__kirill-rank h4 {
    font-size: var(--font_adapt_rank-H4);
    font-weight: var(--font-weight_rank-H4);
    text-align: center;
    letter-spacing: 1px;
  }

  .section-second__konstantin_rank h4,
  .section-second__lebedev_rank h4 {
    margin: 0;
  }

  .section-second__konstantin_photo {
    margin-top: 0;
  }

  .section-second__konstantin_surname,
  .section-second__lebedev_surname {
    margin-right: 0;
    text-align: center;
  }

  .section-second__konstantin_card {
    align-items: center;
    gap: 20px;
  }

  .konstantin_card_1,
  .kirill_card {
    margin-right: 0;
    font-size: 18px;
    width: 100%;
  }

  .konstantin_card_2,
  .konstantin_card_3,
  .lebedev_card_1 {
    width: 100%;
    margin-right: 0;
    font-size: 18px;
  }

  .section-second__kirill {
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
    align-items: center;
    margin-bottom: 30px;
  }

  .section-second__title_kirill-surname h3 {
    text-align: center;
  }

  .section-second__title_kirill-surname {
    margin: 0;
  }

  .section-second__container_kirill-right {
    flex-direction: column;
  }

}

@media (max-width: 913px) {
  .section-second__konstantin_rank h4,
  .section-second__kirill-rank h4

    /*!*.section-second__lebedev_rank */
  {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .section-second__img-konstantin,
  .section-second__img-lebedev,
  .section-second__container_kirill-right,
  .section-second__konstantin_education,
  .section-second__lebedev_education,
  .section-second__container_kirill-left {
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 769px) {
  .section-second__konstantin_rank h4,
  .section-second__kirill-rank h4,
  .section-second__lebedev_rank h4 {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .kirill_card p {
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  .section-second__title h2 {
    font-size: var(--font_adapt_title-H2);
    font-weight: var(--font-weight_adapt_title-H2);
  }

  .section-second__konstantin_surname h3,
  .section-second__lebedev_surname h3,
  .section-second__title_kirill-surname h3 {
    font-size: var(--font_adapt_subtitle-H3);
    font-weight: var(--font-weight_adapt_subtitle-H3);
    letter-spacing: 4px;
  }

  .section-second__konstantin_card {
    gap: 15px;
  }

  .konstantin_card_1,
  .konstantin_card_2,
  .konstantin_card_3,
  .lebedev_card_1,
  .section-second__kirill_card {
    width: 100%;
    margin: 0 auto;
    padding: 25px 25px 25px 35px;
    font-size: var(--font_adapt_text-P);
    font-weight: var(--font-weight_adapt_text-P);
  }

  .kirill_card {
    font-size: var(--font_adapt_text-P);
    font-weight: var(--font-weight_adapt_text-P);
  }

  .section-second__konstantin_rank h4,
  .section-second__lebedev_rank,
  .section-second__kirill-rank h4 {
    font-size: var(--font_adapt_rank-H4);
    font-weight: var(--font-weight_rank-H4);
  }

  .section-second__kirill-rank h4 {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 391px) {
  .konstantin_card_1,
  .konstantin_card_2,
  .konstantin_card_3,
  .lebedev_card_1,
  .section-second__kirill_card {
    padding: 15px 35px;
  }

  .section-second__kirill-photo img {
    margin-top: 20px;
    margin-bottom: 5px;
  }
}