.main-person__block {
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

.bx-control-panel {
  margin: 10px;
}
.tag-buttons {
  padding: 10px;
}
.pressed {
  color: white;
  background-color: blue;
}
.bx-news-list {
  display: flex;
}
.half-place {
  width: 50%;
}
.preview_picture {
  width: 100%;
}
.news-item {
  display: flex;
  flex-direction: column;
  padding: 10px;
  min-height: 74px;
}
.news-item.right-item {
  height: 25%;
}

.uk-flex.uk-height-medium {
  min-height: 315px;
  /*height: auto; */
}


/* Цветовые темы */

/* Белый фон синий текст */
.white_text_blue__contact {
	color: #16267D !important;
}
.white_text_blue__contact:hover {
	color: var(--text-blue) !important;
}

/* Белый фон черный текст */
.white__contact {
	color: var(--text-blue);
}
.white__contact:hover {
	color: #16267D;
}


/* Голубой фон синий текст */
.light_blue__contact {
	color: #16267D !important;
}

.light_blue__contact:hover {
	color: var(--text-blue);
}

.component_person_text_block_line:has(.light_blue__contact)::after {
    content: "";
    position: absolute;
    left: 2.5%;
    bottom: 0;
    width: 95%;
    border-bottom: 2px solid #4370b7;
}

/* Голубой фон черный текст */
.light_blue_text_black__contact {
	color: var(--text-blue);
}

.light_blue_text_black__contact:hover {
	color: #16267D !important;
}

.component_person_text_block_line:has(.light_blue_text_black__contact)::after {
    content: "";
    position: absolute;
    left: 2.5%;
    bottom: 0;
    width: 95%;
    border-bottom: 2px solid #4370b7;
}
.component_person_text_block_line:has(.light_blue__contact)::after,
.component_person_text_block_line:has(.light_blue_text_black__contact)::after {
    border-color: var(--blue500);
}

/* Синий фон белый текст */
.blue__contact {
	color: var(--text-white) !important;
}

.blue__contact:hover {
	color: var(--blue200) !important;
}


/* Синий фон черный текст */
.blue_text_black__contact {
	color: var(--blue700) !important;
}

.blue_text_black__contact:hover {
	color: var(--blue700) !important;
}

.person-component__container{
	min-height: 20.5rem;
}



body.high-contrast--black .phone-number_link,
body.high-contrast--black .mail-address_link,
body.high-contrast--black .person__block__text,
body.high-contrast--black .person__block__name{
	background: black !important;
	--text: #fff;
	color: var(--text) !important;
}
body.high-contrast--green .phone-number_link,
body.high-contrast--green .mail-address_link,
body.high-contrast--green .person__block__text,
body.high-contrast--green .person__block__name {
	background: #422a11 !important;
	--text: #45973b;
	color: var(--text) !important;
}
body.high-contrast--brown .phone-number_link,
body.high-contrast--brown .mail-address_link,
body.high-contrast--brown .person__block__text,
body.high-contrast--brown .person__block__name {
	background: #f9ddd6 !important;
	--text: #422a11;
	color: var(--text) !important;
}
body.high-contrast--blue .phone-number_link,
body.high-contrast--blue .mail-address_link,
body.high-contrast--blue .person__block__text,
body.high-contrast--blue .person__block__name {
	background: #c3dff0 !important;
	--text: #16267d;
	color: var(--text) !important;
}

@media screen and (min-width: 670px) and (max-width: 840px) {
  .uk-flex.uk-height-medium {
    min-height: 396px;
  }
}

.person-name__text {
  overflow-wrap: anywhere;
}

.contact-info__container {
  gap: 5px;
}

.mail-address_link,
.phone-number_link {
  color: #4370b7;
  overflow-wrap: anywhere;
}

.person-component__image {
  aspect-ratio: 1 / 1 !important;
  background-position: top !important;
  background-size: cover;
  background-repeat: no-repeat;
}

.flex-row {
  flex-direction: row;
}
.flex-column {
  flex-direction: column;
}

.item-meta__tag {
  width: fit-content;
  padding: 5px 15px;
  background-color: #d9e8ff;
  border-radius: 15px;
}

.component_person_text_block {
  width: 100% !important;
  overflow-y: auto; /* Включаем вертикальную прокрутку при необходимости */
}

/* .person-component__container {
    min-height: 15.3125rem;
  } */

.item-meta__tag p {
  color: #4370b7 !important;
}
@media screen and (min-width: 1601px) {
  .person-component__container {
    flex-direction: row;
  }
}

@media screen and (min-width: 1440px) and (max-width: 1800px) {
  .person-component__container {
    flex-direction: column !important;
  }

/*.person-component__container {
	min-height: unset!important;
max-height: unset!important;
    flex-direction: row !important;
  }*/

  .person-component__image {
    /*max-width: min-content !important;
    width: 40% !important;*/
	min-height: unset !important;
	height: 500px;
    background-size: cover !important;
  }

  .person-info__text {
    overflow-wrap: anywhere;
    width: 100% !important;
  }

  .component_person_text_block {
    /* width: auto !important; */
  }
}

/*@media screen and (min-width: 1100px) and (max-width: 1439px) {
  .person-component__container {
	min-height: unset!important;
max-height: unset!important;
    flex-direction: row !important;
  }

  .person-component__image {*/
    /*max-width: min-content !important;
    width: 40% !important;*/ /*
    background-size: cover !important;
  }

  .person-info__text {
    width: 100% !important;
  }

  .component_person_text_block {*/
    /*width: auto !important;*/ /*
  }
}*/

/* Планшеты и лаптопы */
@media screen and (min-width: 840px) and (max-width: 1439px) {
  .person-component__container:not(.flex-row) {
    flex-direction: column !important;
  }

  .person-component__image {
    min-height: auto !important;
    max-height: 100% !important;
    background-size: cover !important;
  }

  .person-info__text {
    width: 100% !important;
  }

  .component_person_text_block {
    /* width: auto !important; */
  }
  .uk-flex.uk-height-medium{
    height: auto;
  }
}

/* Смартфоны L */
@media screen and (min-width: 540px) and (max-width: 840px) {
  .person-component__container:not(.flex-row) {
    flex-direction: column !important;
  }

  .person-component__image {
    background-size: cover !important;
	  min-height: auto !important;
    max-height: 100% !important;
  }

  .component_person_text_block {
    /* width: auto !important; */
  }
}

/* Смартфоны M */
@media screen and (min-width: 375px) and (max-width: 540px) {
  .person-component__container {
flex-direction: column !important;
min-height: unset!important;
max-height: unset!important;
  }

  .person-component__image {
    max-width: unset !important;
    width: 100% !important;
    background-size: cover !important;
	min-height: unset !important;
  }

  .component_person_text_block {
    /* width: auto !important; */
  }

  .uk-flex.uk-height-medium{
    height: auto;
  }
}

/* Смартфоны S */
@media screen and (max-width: 375px) {
  .person-component__container {
    flex-direction: column !important;
min-height: unset!important;
max-height: unset!important;
  }

  .person-component__image {
    max-width: unset !important;
    width: 100% !important;
    background-size: cover !important;
	min-height: unset !important;
  }

  .component_person_text_block {
    /* width: auto !important; */
  }
}

@media screen and (max-width: 350px) {
  .person-component__container {
    flex-direction: column !important;
min-height: unset!important;
max-height: unset!important;
  }

  .person-component__image {
    max-width: unset !important;
    width: 100% !important;
    background-size: cover !important;
	min-height: unset !important;
  }

  .component_person_text_block {
    /* width: auto !important; */
  }
}
