/* Кастомные стили для vozhdenie.by */

/* Улучшенный page_title */
.page_title.custom-title {
	background: #f8f9fa;
	border-bottom: 3px solid #56d7fe;
	padding: 50px 0 40px;
	position: relative;
}

.page_title.custom-title h1 {
	color: #242327;
	font-weight: 700;
	margin-bottom: 15px;
	position: relative;
}

.page_title.custom-title h1:after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	background: #56d7fe;
	margin: 15px auto 0;
}

.page_title.custom-title .breadcrumb {
	background: transparent;
	padding: 0;
	margin: 0;
	justify-content: center;
}

.page_title.custom-title .breadcrumb-item {
	color: #6c757d;
}

.page_title.custom-title .breadcrumb-item a {
	color: #56d7fe;
	font-weight: 500;
	transition: all 0.3s;
}

.page_title.custom-title .breadcrumb-item a:hover {
	color: #242327;
	text-decoration: none;
}

.page_title.custom-title .breadcrumb-item.active {
	color: #6c757d;
}

.page_title.custom-title .breadcrumb-item + .breadcrumb-item:before {
	color: #6c757d !important;
}

/* Простой современный прелоадер */
.preloader {
	background-color: #fff;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.preloader_image {
	width: 80px !important;
	height: 80px !important;
	border: 4px solid #f0f0f0 !important;
	border-top: 4px solid #56d7fe !important;
	border-radius: 50% !important;
	animation: spin 1s linear infinite !important;
	background: none !important;
	position: static !important;
	left: auto !important;
	top: auto !important;
	margin: 0 !important;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Альтернативный прелоадер с логотипом */
.preloader.logo-loader .preloader_image {
	border: none;
	width: auto;
	height: auto;
	animation: pulse 1.5s ease-in-out infinite;
}

.preloader.logo-loader .preloader_image:before {
	content: 'vozhdenie.by';
	font-size: 32px;
	font-weight: 700;
	color: #56d7fe;
	font-family: 'Montserrat', sans-serif;
}

@keyframes pulse {
	0%, 100% { 
		opacity: 1;
		transform: scale(1);
	}
	50% { 
		opacity: 0.6;
		transform: scale(0.95);
	}
}

/* Иконки мессенджеров - стили для Font Awesome 6 */
.social-icons a {
	display: inline-block;
	text-decoration: none;
	transition: all 0.3s;
}

.social-icons a:hover {
	transform: scale(1.1);
	opacity: 0.85;
}

/* Фирменные цвета мессенджеров */
/* Размеры для иконок мессенджеров - ВЕЗДЕ КРОМЕ HEADER И FOOTER */
.social-icons a.fa-telegram,
.social-icons a.fa-viber,
.social-icons a.fa-whatsapp {
	font-size: 32px !important;
}

.social-icons a.fa-telegram:before,
.social-icons a.fa-viber:before,
.social-icons a.fa-whatsapp:before {
	font-size: 32px !important;
	width: auto !important;
}

/* В header и footer оставляем маленькими */
.page_topline .social-icons a.fa-telegram,
.page_topline .social-icons a.fa-viber,
.page_topline .social-icons a.fa-whatsapp,
.page_header .social-icons a.fa-telegram,
.page_header .social-icons a.fa-viber,
.page_header .social-icons a.fa-whatsapp,
footer .social-icons a.fa-telegram,
footer .social-icons a.fa-viber,
footer .social-icons a.fa-whatsapp {
	font-size: 15px !important;
}

.page_topline .social-icons a.fa-telegram:before,
.page_topline .social-icons a.fa-viber:before,
.page_topline .social-icons a.fa-whatsapp:before,
.page_header .social-icons a.fa-telegram:before,
.page_header .social-icons a.fa-viber:before,
.page_header .social-icons a.fa-whatsapp:before,
footer .social-icons a.fa-telegram:before,
footer .social-icons a.fa-viber:before,
footer .social-icons a.fa-whatsapp:before {
	font-size: 15px !important;
}

.social-icons a.fa-telegram {
	color: #229ED9;
}

.social-icons a.fa-telegram:hover {
	color: #0088cc;
}

.social-icons a.fa-viber {
	color: #7360F2;
}

.social-icons a.fa-viber:hover {
	color: #665CAC;
}

.social-icons a.fa-whatsapp {
	color: #25D366;
}

.social-icons a.fa-whatsapp:hover {
	color: #128C7E;
}

/* Фиксация высоты carousel для автомобилей - решение проблемы с трансформацией */
.car-carousel .carousel-inner {
	height: 500px;
	background: #fff;
}

.car-carousel .carousel-item {
	height: 500px;
}

.car-carousel .carousel-item img {
	height: 100%;
	width: 100%;
	object-fit: cover;
	object-position: center;
}

/* Портретные изображения (вертикальные) - вписываются по высоте */
.car-carousel .carousel-item img[src*="dashboard"],
.car-carousel .carousel-item img[src*="interior"] {
	object-fit: contain;
}

/* На мобильных устройствах меньше высота */
@media (max-width: 768px) {
	.car-carousel .carousel-inner,
	.car-carousel .carousel-item {
		height: 300px;
	}
}

/* Стрелочки на карточках - голубой цвет как логотип */
[class*="-item"] .links-wrap a.link-anchor {
	background-color: #56d7fe !important;
	border-color: #56d7fe !important;
	color: #fff !important;
}

[class*="-item"] .links-wrap a.link-anchor:hover {
	background-color: #4bc4e8 !important;
	border-color: #4bc4e8 !important;
	color: #fff !important;
	opacity: 1;
}

