.banner_text_about_page {
  margin-bottom: 0 !important;
}

#middle_text_with_image_on_about_page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

#img_on_middle_block {
  position: relative;
  margin-left: 200px;
  order: 1;
}

#iphone_on_about_page {
  position: relative;
  z-index: 1;
}

#img_in_iphone_on_about_page {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  /* width: 80%;
  height: auto; */
  z-index: 2;
}

#text_on_middle_block {
  flex: 1;
  padding: 0 100px;
  text-align: center;
  order: 2;
}
#text_on_middle_block #text_zapisi_big {
  margin-bottom: 0px;
}

#text_on_middle_block #text_on_main_page {
  padding: 0;
  margin: 50px 0;  
}

.title_about_company {
  margin: 0 !important; 
}

.text_about_company {
  padding: 20px 0 150px 0 !important;
}

#banner_background_about_page { 
	background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/about/include/banner_background_about_page.svg');
	background-size: cover; /* Растягивает изображение, сохраняя пропорции */
	background-position: center; /* Центрирует изображение */
	min-height: 607px; /* Минимальная высота — весь экран */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center; /* Центрирование по горизонтали */
	text-align: center;
	color: white; /* Для лучшей читаемости текста на затемненном фоне */ 
	margin: 50px 0;
  gap: 100px;
}

#mini_logo_about_page {
  text-align: center;
}

#component_about {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
}

#component_about > div:first-child {
    text-align: center;
    margin-bottom: 40px;
}

#colleagues {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 35px 0; 
    justify-items: center;
    align-items: start;
    /* background-image: url(/include/big_logo_background_about_page.svg); */
    background-image: linear-gradient(rgba(255, 255, 255, 0.7)), url(/include/big_logo_background_about_page.svg);
    margin: 125px 0 300px 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#colleague_1, #colleague_2, #colleague_3, #colleague_4, #colleague_5, #colleague_6, #colleague_7, #colleague_8 {
    position: relative; /* Чтобы содержимое оставалось поверх псевдоэлемента */
    z-index: 1; /* Поднимаем блоки над фоном */
}

#colleague_1, #colleague_2, #colleague_3, #colleague_4, #colleague_5, #colleague_6, #colleague_7, #colleague_8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
}

#colleague_1 { grid-row: 1; grid-column: 1; }
#colleague_2 { grid-row: 1; grid-column: 3; }
#colleague_3 { grid-row: 2; grid-column: 2; }
#colleague_4 { grid-row: 2; grid-column: 3; }
#colleague_5 { grid-row: 2; grid-column: 1; }
#colleague_6 { grid-row: 3; grid-column: 2; }
#colleague_7 { grid-row: 3; grid-column: 1; }
#colleague_8 { grid-row: 3; grid-column: 3; }

#img_colleagues {
    position: relative;
    width: 280px;
    height: 313px;
    overflow: hidden;
}
#colleague_6 #img_colleagues {
  width: 317px !important;
}

#img_colleagues svg {
    width: 100%;
    height: 100%;
}

.text_colleagues {
    margin-top: 20px !important;    
}

#text_about_colleagues {
    text-align: left;
    font-size: 14px;
    margin-bottom: 30px;
    min-width: 300px;
}

/* .text_about_colleagues_maksim {
  margin-bottom: 15px !important;
} */

#text_name_colleagues, #post {
    text-align: center;
    font-size: 16px;
    margin-bottom: 5px;
}

#component_about #banner_background_1_text {
  max-width: 280px !important; 
}

#banner_background_about_page #banner_background_1_text {
  order: 2 !important;
  margin-bottom: 173px !important;
}

#banner_background_about_page #banner_background_2_big_text {
  margin-top: 114px !important;
  order: 1 !important;
  margin-bottom: 0 !important;

}

.title_under_colleagues {
  text-align: center;
  padding: 0px 190px;
}

#post  {
  font-size: 14px !important;
  line-height: 28px !important;
}

@media (max-width: 400px) {
    #colleagues {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    #colleague_1, #colleague_2, #colleague_3, #colleague_4, #colleague_5, #colleague_6, #colleague_7, #colleague_8 {
        width: 100%;
        max-width: 280px;
    }
}

#colleague_1 { transform: translate(0, 0); }
#colleague_2 { transform: translate(0, 0); }
#colleague_3 { transform: translate(0, -62%); }
#colleague_4 { transform: translate(0, 0); }
#colleague_5 { transform: translate(0, 0); }
#colleague_6 { transform: translate(0, -60%); }
#colleague_7 { transform: translate(0, 0); }
#colleague_8 { transform: translate(0, 0); }

