.site-light-overlap {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: -82svh;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--fon_light);
  color: var(--text_color_fon_light);
  border-radius: 0;
  box-shadow: 0 -28px 80px rgba(1, 0, 28, 0.22);
  isolation: isolate;
}

.site-light-overlap .section-second-about.container {
  position: relative;
  z-index: 1;
  margin-top: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding-top: clamp(32px, 3.6vw, 48px);
  padding-bottom: var(--pkks-about-bottom);
}

.section-second__title {
  margin: 0 0 var(--pkks-title-to-content);
  text-align: center;
  color: var(--text_color_fon_light);
  font-size: var(--font-h2);
  font-weight: var(--font-weight_title-H2);
}

.section-second__container,
.section-second__kirill {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 100%;
  min-height: 90%;
  margin-bottom: var(--pkks-person-stack-gap);
  gap: clamp(24px, 4vw, 52px);
}

.section-second-about > .section-second__container:last-of-type {
  margin-bottom: 0;
}

.section-second__konstantin_rank,
.section-second__lebedev_rank,
.section-second__kirill-rank {
  display: flex;
  flex-direction: column;
}

@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 {
  display: block;
  border-radius: var(--border-radius);
}

.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: clamp(22px, 3vw, 38px);
}

.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);
  text-align: left;
}

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

.section-second__konstantin_card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(14px, 2vw, 22px);
}

.konstantin_card_1,
.konstantin_card_2,
.konstantin_card_3,
.section-second__kirill_card,
.lebedev_card_1 {
  /* width: 90%; */
  border-radius: var(--border-radius);
  border: 1px solid rgba(16, 3, 20, 0.10);
  text-align: left;
  background-color: #ffffff;
  padding: clamp(20px, 2.5vw, 30px);
  color: var(--text_color_fon_light);
  font-size: var(--font-p);
  font-weight: var(--font-weight_text-P);
  line-height: 1.55;
}

.section-second__container_kirill-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
  width: 55%;
  gap: var(--pkks-title-to-content-compact);
}

.section-second__lebedev_education {
  justify-content: center;
  align-self: stretch;
  gap: var(--pkks-title-to-content-compact);
}

.team-qualification {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(14px, 1.5vw, 18px);
  row-gap: 4px;
  width: min(100%, 360px);
  margin: 0;
  padding: clamp(14px, 1.5vw, 18px) clamp(20px, 2vw, 26px);
  background: var(--background_card);
  color: var(--text_color_fon_light);
  border: 1px solid rgba(16, 3, 20, 0.10);
  border-radius: var(--border-radius);
  text-align: left;
  box-shadow: none;
}

.team-qualification::before {
  grid-row: 1 / span 2;
  width: 3px;
  height: 100%;
  content: '';
  background: var(--text_color_fon_light);
  border-radius: 999px;
  opacity: 0.82;
}

.team-qualification__label {
  grid-column: 2;
  font-family: var(--font-primary);
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: var(--font-weight_title-H2);
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.68;
}

.team-qualification__value {
  grid-column: 2;
  font-family: var(--font-primary);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: var(--font-weight_title-H2);
  line-height: 1.2;
}

.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: flex-start;
  align-items: center;
  /* width: 45%; */
}

.section-second__konstantin_rank,
.section-second__kirill-rank,
.section-second__lebedev_rank {
  margin-top: clamp(14px, 1.2vw, 18px);
}

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

@media (min-width: 991px) {
  .section-second__kirill {
    display: grid;
    grid-template-columns: minmax(0, 55%) auto;
    grid-template-rows: auto auto;
    justify-content: center;
    column-gap: clamp(24px, 4vw, 52px);
    row-gap: 0;
  }

  .section-second__container_kirill-left {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .section-second__container_kirill-right {
    display: contents;
  }

  .section-second__kirill-photo {
    grid-column: 2;
    grid-row: 1;
  }

  .section-second__kirill-rank {
    grid-column: 2;
    grid-row: 2;
  }

  .section-second__container--lebedev {
    display: grid;
    grid-template-columns: auto minmax(0, 55%);
    grid-template-rows: auto auto;
    justify-content: center;
    column-gap: clamp(24px, 4vw, 52px);
    row-gap: 0;
  }

  .section-second__img-lebedev {
    display: contents;
  }

  .section-second__lebedev_photo {
    grid-column: 1;
    grid-row: 1;
  }

  .section-second__lebedev_rank {
    grid-column: 1;
    grid-row: 2;
  }

  .section-second__lebedev_education {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
}

@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,
  .section-second__kirill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    gap: 0;
  }

  .section-second__konstantin_education,
  .section-second__lebedev_education,
  .section-second__container_kirill-left {
    gap: var(--pkks-title-to-content-compact);
  }

  .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 h4 {
    margin: 0;
  }

  .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: 0;
  }

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

@media (max-width: 430px) {
  .team-qualification {
    width: min(100%, 280px);
    padding: 15px 18px;
    column-gap: 14px;
  }

  .team-qualification__label {
    font-size: 11px;
  }

  .team-qualification__value {
    font-size: 20px;
  }

  .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); */
    line-height: 1.15;
    letter-spacing: 0;
  }

  .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: 18px;
    font-size: var(--font_adapt_text-P);
    font-weight: var(--font-weight_adapt_text-P);
    line-height: 1.55;
  }

  .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: 0;
  }
}

@media (max-width: 391px) {
  .section-second__kirill-photo img {
    margin: 0;
  }
}

@media (max-width: 576px) {
  .site-light-overlap {
    margin-top: -59svh;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0;
  }
}
