/* Первый блок: Заголовок */
.car-header-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

.car-header__wrapper {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 30px;
	align-items: flex-start;
}

.car-header__left {
	min-width: 0;
}

.car-header__right {
	grid-column: 2;
	grid-row: 1;
	text-align: right;
}

h1.car-header__title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
	margin-bottom: 10px;
	word-wrap: break-word;
}

/* Новый блок с деталями под заголовком */
.car-header__details {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 16px;
	color: #65717f;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.car-header__year {
	font-weight: 500;
	color: var(--text);
}

.car-header__mileage {
	font-weight: 500;
	color: var(--text);
}

.car-header__detail-separator {
	color: #8996a3;
	opacity: 0.6;
}

.car-header__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 15px 0 0 0;
	min-height: 32px;
}

.car-header__tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.car-header__tag--one-owner {
	background: #EBEFFA;
	color: var(--text);
}

.car-header__tag--original-pts {
	background: #E6F7E6;
	color: var(--text);
}

.car-header__tag--low-mileage {
	background: #F7E7FF;
	color: var(--text);
}

.car-header__price {
	font-size: 30px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--text);
	white-space: nowrap;
}

/* Галерея */
.car-gallery-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 30px;
}

/* Сетка всех фотографий */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 4px;
}

.gallery-grid-item {
	position: relative;
	cursor: pointer;
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4/3;
	transition: all 0.3s ease;
}

.gallery-grid-item__inner {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
}

.gallery-grid-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.gallery-grid-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.gallery-grid-item:hover .gallery-grid-overlay {
	opacity: 1;
}

.gallery-no-images {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 300px;
	background: #f8f9fa;
	border-radius: 16px;
	border: 2px dashed #dee2e6;
}

.gallery-no-images__icon {
	font-size: 48px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.gallery-no-images__text {
	color: #6c757d;
	font-size: 16px;
}

/* Характеристики */
.car-specs-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

.section-title {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 25px 0;
	color: var(--text);
}

.car-overview {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px 40px;
}

.car-overview__item {
	display: flex;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid #f0f0f0;
	align-items: center;
}

.car-overview__item:last-child {
	border-bottom: none;
}

.car-overview__label {
	color: #65717f;
	font-weight: 500;
	min-width: 160px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.car-overview__value {
	color: var(--text);
	font-weight: 600;
	text-align: right;
	font-size: 16px;
}

/* Вкладки характеристик */
.specs-tabs {
	display: flex;
	gap: 2px;
	background: #f8f9fa;
	border-radius: 12px;
	padding: 4px;
	margin-bottom: 30px;
	max-width: 400px;
	border: 1px solid #e9ecef;
}

.specs-tab {
	flex: 1;
	padding: 14px 20px;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	color: #65717f;
}

.specs-tab:hover {
	background: rgba(255, 255, 255, 0.8);
	color: #0855E5;
}

.specs-tab.active {
	background: #fff;
	color: #0855E5;
	box-shadow: 0 2px 8px rgba(8, 85, 229, 0.1);
}

.specs-content-panel {
	display: none;
	animation: fadeIn 0.3s ease-in-out;
}

.specs-content-panel.active {
	display: block;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Комплектация */
.equipment-columns {
	column-count: 3;
	column-gap: 40px;
}

.equipment-group {
	margin-bottom: 40px;
	width: 100%;
	display: inline-block;
	break-inside: avoid;
	page-break-inside: avoid;
}

.equipment-group__header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.equipment-group__title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.equipment-group__items {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.equipment-item {
	display: flex;
	align-items: flex-start;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--text);
}

.equipment-simple-list {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}

.equipment-simple-column {
	flex: 1;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.equipment-simple-item {
	display: block;
	padding: 5px 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--text);
}

.no-equipment {
	text-align: center;
	padding: 30px 20px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 2px dashed #dee2e6;
	width: 100%;
}

.no-equipment__icon {
	font-size: 36px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.no-equipment__title {
	font-size: 18px;
	color: var(--text);
	margin-bottom: 8px;
}

.no-equipment__text {
	color: #6c757d;
	font-size: 14px;
}

/* Блок менеджера */
.manager-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

.manager-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
}

.manager-content {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.manager-contacts {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-bottom: 35px;
}

.manager-phone {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	padding: 16px 24px;
	text-decoration: none;
	transition: all 0.3s ease;
	background-color: #f8f9fa;
	border-radius: 16px;
	border: 1px solid #e9ecef;
	width: fit-content;
	min-width: 280px;
}

.manager-phone:hover {
	background-color: #fff;
	border-color: #0855E5;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.manager-phone__icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #0855E5 0%, #0A4DCC 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.manager-phone__icon img {
	filter: brightness(0) invert(1);
	width: 20px;
	height: 20px;
}

.manager-phone__info {
	flex: 1;
}

.manager-phone__number {
	font-size: 22px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
}

.manager-phone__text {
	font-size: 14px;
	color: #65717f;
	margin-top: 4px;
}

.manager-messengers__title {
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	margin-bottom: 16px;
}

.manager-messengers__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.manager-messenger {
	display: inline-flex;
	align-items: center;
	gap: 20px;
	padding: 16px 24px;
	text-decoration: none;
	transition: all 0.3s ease;
	background-color: #f8f9fa;
	border-radius: 16px;
	border: 1px solid #e9ecef;
	width: fit-content;
	min-width: 280px;
}

.manager-messenger:hover {
	background-color: #fff;
	border-color: #0855E5;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.manager-messenger__icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #0855E5 0%, #0A4DCC 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.manager-messenger__icon img {
	filter: brightness(0) invert(1);
	width: 20px;
	height: 20px;
}

.manager-messenger__info {
	flex: 1;
}

.manager-messenger__name {
	font-size: 18px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.3;
}

.manager-messenger__text {
	font-size: 14px;
	color: #65717f;
	margin-top: 4px;
}

.manager-button {
	background: linear-gradient(135deg, #0855E5 0%, #0A4DCC 100%);
	color: white;
	border: none;
	padding: 18px 36px;
	border-radius: 16px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: fit-content;
	min-width: 320px;
	margin-top: auto;
}

.manager-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(8, 85, 229, 0.3);
	background: linear-gradient(135deg, #0A4DCC 0%, #0855E5 100%);
}

.manager-photo__container {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	width: 100%;
	background-size: cover;
	display: flex;
	flex-direction: column;
	min-height: 460px;
}

.manager-photo__info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
	color: white;
	padding: 30px;
}

.manager-photo__name {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 5px 0;
}

.manager-photo__position {
	font-size: 18px;
	margin: 0 0 8px 0;
	opacity: 0.9;
}

.manager-photo__experience {
	font-size: 16px;
	margin: 0;
	opacity: 0.8;
}

/* Трейд-ин */
.trade-in-section-simple {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #292929;
	border-radius: 24px;
	padding: 20px;
	color: #fff;
	gap: 30px;
	margin-bottom: 30px;
}

.trade-in-simple__content {
	display: flex;
	align-items: center;
	gap: 30px;
	flex: 1;
}

.trade-in-simple__icon {
	width: 158px;
	height: 84px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.trade-in-simple__icon img {
	width: 200px;
	height: 100px;
	object-fit: contain;
}

.trade-in-simple__text {
	flex: 1;
	max-width: 336px;
}

.trade-in-simple__title {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

/* Финансовые услуги */
.finance-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

.finance-service__content {
	display: flex;
	align-items: center;
	gap: 30px;
	flex-direction: row;
}

.finance-service {
	display: flex;
	flex-direction: column;
	max-width: 600px;
	width: 100%;
}

.finance-service__icon {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.finance-service__icon img {
	object-fit: cover;
	height: 240px;
}

.finance-service__features {
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 15px;
	list-style: none;
	padding: 0;
	margin-bottom: 30px;
}

.finance-service__feature {
	font-size: 16px;
	color: var(--text);
	font-weight: 500;
}

.finance-service__button {
	padding: 16px 36px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 200px;
	min-height: 56px;
}

/* Карта */
.map-section {
	background: #fff;
	border-radius: 24px;
	padding: 20px;
	margin-bottom: 20px;
}

.map-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.map-info {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.map-info__item {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 18px;
	transition: all 0.3s ease;
}

.map-info__content {
	flex: 1;
}

.map-info__title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text);
}

.map-info__text {
	font-size: 16px;
	color: #65717f;
	line-height: 1.5;
}

.map-info__text a {
	color: #65717f;
}

.map-placeholder__img {
	overflow: hidden;
	border-radius: 18px;
	width: 100%;
	height: 100%;
}

.map-placeholder__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Рекомендуемые автомобили */
#recommended-cars-section {
	background: #fff;
	border-radius: 24px;
	padding-inline: 20px;
	margin-bottom: 30px;
}

#recommended-cars-section .page-catalog__catalog {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

#recommended-cars-section .page-catalog__item {
	border: 1px solid #eee;
	width: 100%;
	border-radius: 20px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform 0.3s, box-shadow 0.3s;
}

#recommended-cars-section .catalog-item__img {
	border-radius: 20px;
	position: relative;
	width: 100%;
	overflow: hidden;
}

#recommended-cars-section .catalog-item__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 20px;
	transition: transform 0.3s ease;
}

#recommended-cars-section .catalog-item__info {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#recommended-cars-section .catalog-item-info__top {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#recommended-cars-section .catalog-item-info__title {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: stretch;
	gap: 10px;
	flex-wrap: nowrap;
	line-height: 1.2;
}

#recommended-cars-section .card__model {
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
}

#recommended-cars-section .card__year {
	color: var(--text);
	font-size: 16px;
	font-weight: 600;
}

#recommended-cars-section .catalog-item-info__price {
	color: var(--text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
}

#recommended-cars-section .catalog-item-info__deskr {
	line-height: 1.3;
	margin-bottom: 5px;
	color: var(--text);
	font-size: 14px;
	display: inline;
	font-weight: 500;
}

#recommended-cars-section .catalog-item-info__tags {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: stretch;
	gap: 4px;
	flex-wrap: wrap;
	max-height: 48px;
	overflow: hidden;
}

#recommended-cars-section .card-tag {
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--text);
	padding: 4px 8px;
	border-radius: 8px;
	height: max-content;
}

.no-cars-message {
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 20px;
	background: #f8f9fa;
	border-radius: 16px;
	border: 2px dashed #dee2e6;
}

/* Модальные окна */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.98);
	z-index: 10000;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
	padding: 0;
}

.modal.active {
	display: flex;
}

/* Полноэкранная галерея */
.modal--gallery-fullscreen {
	background: #000;
}

.gallery-modal-fullscreen__content {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #000;
	color: white;
	position: relative;
}

.gallery-modal-fullscreen__header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 20px 30px;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	z-index: 10010;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-modal-fullscreen__info {
	flex: 1;
}

.gallery-modal-fullscreen__title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 5px 0;
	color: white;
}

.gallery-modal-fullscreen__details {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	flex-wrap: wrap;
}

.gallery-modal-fullscreen__separator {
	opacity: 0.5;
}

.gallery-modal-fullscreen__close {
	background: rgba(255, 255, 255, 0.1);
	border: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	font-size: 28px;
	cursor: pointer;
	color: white;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin-left: 20px;
}

.gallery-modal-fullscreen__close:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
}

/* Основной Swiper (gallery-top) */
.gallery-modal-swiper {
	width: 100%;
	height: 100%;
	position: relative;
}

.gallery-modal-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

.gallery-modal-slide__container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gallery-modal-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	animation: imageFadeIn 0.4s ease-out;
}

@keyframes imageFadeIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

/* Навигация */
.gallery-modal-next,
.gallery-modal-prev {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.3s ease;
	opacity: 0.8;
}

.gallery-modal-next:hover,
.gallery-modal-prev:hover {
	background: rgba(255, 255, 255, 0.25);
	opacity: 1;
	transform: scale(1.1);
}

.gallery-modal-next::after,
.gallery-modal-prev::after {
	font-size: 20px;
	color: white;
	font-weight: bold;
}

.gallery-modal-prev {
	left: 30px;
}

.gallery-modal-next {
	right: 30px;
}

.gallery-modal-pagination {
	position: fixed;
	bottom: 140px;
	left: 0;
	right: 0;
	z-index: 10010;
	color: white;
	font-size: 16px;
	font-weight: 500;
	display: none;
}

.gallery-modal-counter {
	position: fixed;
	bottom: 140px;
	left: 30px;
	background: rgba(0, 0, 0, 0.6);
	color: white;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 500;
	z-index: 10010;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Контейнер миниатюр */
.gallery-modal-thumbs-container {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100px;
	background: rgba(0, 0, 0, 0.9);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 10px 20px;
	z-index: 10010;
}

/* Свайпер для миниатюр */
.gallery-modal-thumbs-swiper {
	height: 100%;
	width: 100%;
}

.gallery-modal-thumb-slide {
	width: auto !important;
	height: 100%;
	padding: 5px;
	cursor: pointer;
}

.gallery-modal-thumb-item {
	width: 120px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	border: 3px solid transparent;
	transition: all 0.3s ease;
	opacity: 0.6;
}

.gallery-modal-thumb-item:hover {
	opacity: 0.8;
	transform: translateY(-2px);
}

.gallery-modal-thumb-item.active {
	border-color: #0855E5;
	opacity: 1;
	box-shadow: 0 0 0 3px rgba(8, 85, 229, 0.3);
}

.gallery-modal-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Обычные модальные окна */
.modal__content {
	background: #fff;
	border-radius: 24px;
	padding: 48px;
	max-width: 520px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}

.modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f8f9fa;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #65717f;
	transition: all 0.3s ease;
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	z-index: 1;
}

.modal__close:hover {
	color: #0855E5;
	background: #e9ecef;
	transform: rotate(90deg);
}

.modal__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 30px 0;
	color: var(--text);
	padding-bottom: 20px;
	border-bottom: 2px solid #f0f0f0;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
	padding: 16px 20px;
	border: 2px solid #e9ecef;
	border-radius: 14px;
	font-size: 16px;
	font-family: inherit;
	transition: all 0.3s ease;
	width: 100%;
	box-sizing: border-box;
	background: #f8f9fa;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
	outline: none;
	border-color: #0855E5;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(8, 85, 229, 0.1);
}

.contact-form textarea {
	min-height: 140px;
	resize: vertical;
}

/* Общий .button переехал в _main.css (общесайтовый файл) — раньше он жил
   здесь и накрывал все страницы только благодаря общему @import, которого
   больше нет. */

/* Адаптивность */
@media (max-width: 1200px) {
	.equipment-columns {
		column-count: 3;
		column-gap: 30px;
	}
}

@media (max-width: 992px) {
	.equipment-columns {
		column-count: 2;
		column-gap: 30px;
	}
	
	.car-overview {
		grid-template-columns: 1fr;
	}
	
	.manager-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.finance-service__content {
		flex-direction: column;
		text-align: center;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
	
	.gallery-modal-thumb-item {
		width: 100px;
		height: 70px;
	}
	
	#recommended-cars-section .page-catalog__catalog {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.equipment-columns {
		column-count: 1;
	}
	
	.car-header__wrapper {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.car-header__right {
		grid-column: 1;
		grid-row: 2;
		text-align: left;
	}
	
	h1.car-header__title {
		font-size: 26px;
	}
	
	.car-header__price {
		font-size: 30px;
		text-align: left;
	}
	
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}
	
	.manager-phone,
	.manager-messenger {
		width: 100%;
		min-width: auto;
	}
	
	.manager-button {
		width: 100%;
		min-width: auto;
	}
	
	.trade-in-section-simple {
		flex-direction: column;
	}
	
	.trade-in-simple__content {
		flex-direction: column;
		text-align: center;
	}
	
	.gallery-modal-thumbs-container {
		height: 90px;
		padding: 10px 15px;
	}
	
	.gallery-modal-thumb-item {
		width: 90px;
		height: 60px;
	}
	
	.gallery-modal-next,
	.gallery-modal-prev {
		width: 50px;
		height: 50px;
	}
	
	.gallery-modal-counter {
		bottom: 100px;
		left: 20px;
		padding: 8px 16px;
		font-size: 14px;
	}
	
	#recommended-cars-section .page-catalog__catalog {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 576px) {
	.car-overview__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 5px;
	}
	
	.car-overview__value {
		text-align: left;
	}
	
	.specs-tabs {
		flex-direction: column;
		max-width: 100%;
	}
	
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	
	.gallery-modal-fullscreen__info {
		display: none;
	}
	
	.gallery-modal-fullscreen__close {
		margin-left: 0;
	}
	
	.gallery-modal-thumbs-container {
		height: 80px;
		padding: 8px 12px;
	}
	
	.gallery-modal-thumb-item {
		width: 70px;
		height: 50px;
	}
	
	.gallery-modal-next,
	.gallery-modal-prev {
		width: 40px;
		height: 40px;
	}
	
	.gallery-modal-next::after,
	.gallery-modal-prev::after {
		font-size: 16px;
	}
	
	.finance-service__icon img {
		height: auto;
		width: 100%;
	}
	.map-info {
		grid-template-columns: 1fr;
	}
}

/* Сообщение об ошибке */
.error-container {
	text-align: center;
	padding: 100px 20px;
	background: #fff;
	border-radius: 24px;
	margin: 40px auto;
	max-width: 800px;
}

.error-container h2 {
	color: #dc2626;
	margin-bottom: 20px;
	font-size: 32px;
	font-weight: 700;
}