/* о компании */

.company_wrap {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
	margin: 30px 0;
}

.company_wrap_item{
   text-align: center;
	text-align: left;
   margin: 60px 0px;
}

.company_wrap_item .subtitle {
	margin-bottom: 16px;
}


.company_item {
    text-align: center;
    width: calc(33.3% - 20px);
    padding-bottom: 40px;
}

.company_item p {
    padding-left: 6px;
	padding-right: 6px;
	
}

.company_item img{
    display: block;
    margin: 28px auto;
	width: 40px;
}

.company_wrap_item img{
    width: 32px;
	margin-right: 4px;
}


.company_wrap_item ul{
    margin-top: 12px;
}


.company_wrap_item p{
    margin-bottom: 10px;
}


.company_item .main_title {
    margin-bottom: 10px;
    padding: 0 35px;
	font-weight: 800;
}

.company_item .fa{
    margin-right: 5px;
}


@media (max-width: 991px) { 
	.company_wrap {
		flex-direction: column;}
		
	.company_item {
		width: 100%;
		margin-bottom: 26px;}	

}



/* секция «История магазина»: слева фото, справа текст */
.about_history_section {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
	margin: 40px 0 50px;
}
.about_history_section .about_text {
	flex: 0 1 calc((100% - 24px) / 3);
	min-width: 240px;
	margin: 0;
}
.about_history_section .about_gallery {
	flex: 0 1 calc((100% - 24px) * 2 / 3);
	min-width: 280px;
	margin: 0;
}
/* планшеты: вертикальная раскладка, удобнее читать */
@media (max-width: 991px) {
	.about_history_section {
		flex-direction: column;
		gap: 28px;
		margin: 32px 0 44px;
	}
	.about_history_section .about_text {
		flex: none;
		width: 100%;
		order: 1;
	}
	.about_history_section .about_gallery {
		flex: none;
		width: 100%;
		order: 2;
	}
}
@media (max-width: 767px) {
	.about_history_section {
		gap: 20px;
		margin: 24px 0 40px;
	}
}

/* галерея фотографий на странице О компании */
.about_gallery .about_photos {
	margin-top: 0;
}
.about_photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	grid-auto-rows: 200px;
	gap: 12px;
	margin-top: 16px;
}
.about_photo {
	border-radius: 8px;
	overflow: hidden;
	background: var(--back-stage, #f5f5f5);
	height: 100%;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.about_photo img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	object-position: center;
}
.about_photo_portrait {
	grid-column: span 1;
}
@media (min-width: 768px) {
	.about_photos {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 220px;
		gap: 14px;
	}
	.about_photo_portrait {
		grid-row: span 2;
	}
	.about_photo_portrait img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center;
	}
}

@media (max-width: 768px) {

	.company_wrap_item {
		margin: 26px 15px;}	
		
	.banner_company_wrap {
		width: unset;}   	
	   

}




