.object-detail {
	padding: 40px 0;
}

.object-detail__main {
	margin-bottom: 60px;
}

.object-detail__content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: start;
}

/* Десктоп: галерея липкая — остаётся в зоне видимости при прокрутке текста по всей высоте */
.object-detail__gallery {
	display: flex;
	flex-direction: column;
	gap: 15px;
	position: sticky;
	top: 100px;
}

.object-detail__main-image-wrapper {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4/3;
	background: #f5f5f5;
}

.object-detail__main-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	cursor: zoom-in;
}

.object-detail__main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.object-detail__thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.object-detail__thumbnails--video {
	margin-top: 15px;
}

.object-detail__thumbnails--video .object-detail__thumbnail {
	width: calc(50% - 8px);
}

.object-detail__thumbnail {
	cursor: pointer;
	border-radius: 8px;
	overflow: hidden;
	width: calc(33.333% - 10px);
	aspect-ratio: 4/3;
	background: #f5f5f5;
	transition: opacity 0.3s ease;
	border: 2px solid transparent;
}

.object-detail__thumbnail:hover {
	opacity: 0.8;
	border-color: #4A90E2;
}

.object-detail__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Миниатюра видео — обводка/тень как у карточек «Продукция, примененная на объекте» */
.object-detail__thumbnail--video {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border-radius: 8px;
	aspect-ratio: auto;
	height: auto;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.object-detail__thumbnail--video:hover {
	opacity: 1;
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.object-detail__thumbnail-video-link {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px 8px 0 0;
	aspect-ratio: 4/3;
	background: transparent;
}

.object-detail__thumbnail--video:hover .object-detail__thumbnail-video-link {
	opacity: 0.98;
}

/* Превью видео — обязательно contain */
.object-detail__thumbnail--video .object-detail__thumbnail-video-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain !important;
	object-position: center;
	display: block;
}

/* Кнопка play — цвет как у кнопки «Задать вопрос» (#333399) */
.object-detail__thumbnail-video-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(51, 51, 153, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	pointer-events: none;
	transition: background 0.25s ease;
}

.object-detail__thumbnail--video:hover .object-detail__thumbnail-video-icon {
	background: #333399;
}

.object-detail__thumbnail-video-icon::after {
	content: "";
	width: 0;
	height: 0;
	margin-left: 5px;
	border-width: 12px 0 12px 20px;
	border-style: solid;
	border-color: transparent transparent transparent #fff;
}

/* Описание видео — без фона, цвет текста как в блоке описания (#666) */
.object-detail__thumbnail-video-title {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 12px 14px;
	background: transparent;
	color: #666;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 0 0 8px 8px;
	word-wrap: break-word;
}

.object-detail__thumbnail--video:hover .object-detail__thumbnail-video-title {
	background: transparent;
}

.object-detail__info {
	padding: 20px 0;
}

.object-detail__title {
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #333;
}

.object-detail__city {
	font-size: 16px;
	margin-bottom: 20px;
	color: #666;
}

.object-detail__city strong {
	color: #333;
}

.object-detail__features {
	margin-bottom: 20px;
}

.object-detail__features h2 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
}

.object-detail__features p {
	font-size: 14px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 10px;
}

.object-detail__text {
	font-size: 14px;
	line-height: 1.8;
	color: #666;
	margin-bottom: 20px;
}

.object-detail__text p {
	margin-bottom: 15px;
}

.object-detail__action {
	margin-top: 30px;
}

.object-detail__question-btn {
	display: inline-block;
	padding: 15px 40px;
	background: #2C3E50;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	transition: background 0.3s ease;
	cursor: pointer;
	border: none;
}

.object-detail__question-btn:hover {
	background: #1a252f;
	color: #fff;
	text-decoration: none;
}

/* Попап для формы вопроса */
.object-question-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
}

.object-question-popup__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
}

.object-question-popup__content {
	position: relative;
	width: 90%;
	max-width: 600px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	padding: 40px;
	margin: 5vh auto;
	z-index: 10001;
}

.object-question-popup__close {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	transition: color 0.3s ease;
}

.object-question-popup__close:hover {
	color: #333;
}

.object-detail__products {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 1px solid #e0e0e0;
}

.object-detail__products-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 30px;
	color: #333;
}

.object-detail__products .catalog-section-list {
	max-width: 100%;
}

.object-detail__products .catalog-section-list .catalog-section-item {
	width: auto;
}

.other-objects {
	margin-top: 40px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

/* Переопределяем глобальный .top_block (в шаблоне margin: 0 0 85px !important) */
.other-objects .top_block {
	margin-bottom: 30px !important;
	padding-top: 0;
}

.other-objects__title,
.other-objects .top_block h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 0;
	color: #333;
}

.object-detail__feedback {
	margin-top: 60px;
	padding: 40px;
	background: #f5f5f5;
	border-radius: 8px;
}

.object-detail__feedback-content {
	text-align: center;
}

.object-detail__feedback-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #333;
}

.object-detail__feedback-text {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin-bottom: 25px;
}

.object-detail__feedback-button {
	display: inline-block;
	padding: 15px 40px;
	background: #4A90E2;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 500;
	transition: background 0.3s ease;
}

.object-detail__feedback-button:hover {
	background: #357ABD;
	color: #fff;
	text-decoration: none;
}

.object-detail__products-list {
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

.object-detail__products-list p {
	margin-bottom: 10px;
	color: #666;
}

.object-detail__products-list ul {
	margin-left: 20px;
	color: #666;
}

.object-detail__products-empty {
	padding: 40px 20px;
	text-align: center;
	color: #999;
}

.object-detail__products-empty p {
	margin: 0;
	font-size: 16px;
}

.object-detail__products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

.object-detail__product-item {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
}

.object-detail__product-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.object-detail__product-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.object-detail__product-image-wrapper {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
}

.object-detail__product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.object-detail__product-item:hover .object-detail__product-image {
	transform: scale(1.05);
}

.object-detail__product-image-wrapper--placeholder {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.object-detail__product-content {
	padding: 20px;
}

.object-detail__product-name {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
	line-height: 1.4;
}

.object-detail__product-price {
	font-size: 18px;
	font-weight: 700;
	color: #4A90E2;
}

/* Сетка: высота карточек в ряду = высота самого высокого блока в ряду */
.object-detail .other-objects__grid,
.other-objects__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	align-items: stretch;
	margin: 0;
}

.object-detail .other-objects__item,
.other-objects__item {
	display: flex !important;
	flex-direction: column;
	flex: none !important;
	width: auto !important;
	min-width: 0;
	margin: 0 !important;
	align-self: stretch;
	min-height: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	background: #fff;
}

.other-objects__item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.object-detail .other-objects__link,
.other-objects__link {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 0%;
	min-height: 0;
	text-decoration: none;
	color: inherit;
}

.other-objects__image-wrapper {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
}

.other-objects__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.other-objects__item:hover .other-objects__image {
	transform: scale(1.05);
}

.other-objects__image-wrapper--placeholder {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.other-objects__label {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(255, 255, 255, 0.9);
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	color: #333;
	z-index: 2;
}

.object-detail .other-objects__content,
.other-objects__content {
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	padding: 20px;
	min-height: 0;
}

.other-objects__item-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #333;
	line-height: 1.35;
}

.other-objects__content .btn {
	margin-top: auto;
}

.other-objects__button {
	width: 100%;
	padding: 12px 20px;
	background: #4A90E2;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.3s ease;
}

.other-objects__button:hover {
	background: #357ABD;
}

/* Мобильная: одна колонка — сначала галерея, потом текст (порядок в разметке) */
@media (max-width: 992px) {
	.object-detail__content {
		grid-template-columns: 1fr;
		/* Галерея уже первая в HTML — остаётся сверху */
	}
	
	.object-detail__gallery {
		position: relative;
		top: auto;
		margin-bottom: 30px;
		order: 1;
	}
	
	.object-detail__info {
		order: 2;
	}
	
	.object-detail__thumbnails {
		flex-wrap: wrap;
	}
	
	.object-detail__thumbnail {
		width: calc(33.333% - 10px);
		min-width: 100px;
	}
	
	.object-detail .other-objects__grid,
	.other-objects__grid {
		display: grid !important;
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 15px;
	}
	
	.object-detail .other-objects__content,
	.other-objects__content {
		padding: 12px 10px;
	}
	
	.other-objects__item-title {
		font-size: 14px;
		margin-bottom: 10px;
	}
	
	.other-objects__image-wrapper {
		height: 140px;
	}
	
	.object-question-popup__content {
		width: 95%;
		padding: 30px 20px;
		margin: 2vh auto;
	}
}

@media (max-width: 480px) {
	.object-detail .other-objects__grid,
	.other-objects__grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 10px;
	}
	
	.object-detail .other-objects__content,
	.other-objects__content {
		padding: 10px 8px;
	}
	
	.other-objects__item-title {
		font-size: 13px;
	}
	
	.other-objects__image-wrapper {
		height: 120px;
	}
}

/* До 600px: 1 карточка в ряд в «Другие объекты» */
@media (max-width: 600px) {
	.object-detail .other-objects__grid,
	.other-objects__grid {
		grid-template-columns: 1fr !important;
	}
	
	.content_wrapper_block.other-objects .other-objects__grid {
		grid-template-columns: 1fr !important;
	}
}

/* Блок «Не нашли свой вариант?» — влезает кнопка на мобилке */
@media (max-width: 768px) {
	.object-detail__feedback {
		padding: 24px 16px;
		margin-top: 40px;
	}
	
	.object-detail__feedback-title {
		font-size: 20px;
		margin-bottom: 12px;
	}
	
	.object-detail__feedback-text {
		font-size: 14px;
		margin-bottom: 20px;
	}
	
	.object-detail__feedback-content .btn {
		display: block;
		width: 100%;
		max-width: 100%;
		white-space: normal;
		text-align: center;
		padding: 14px 16px;
		font-size: 14px;
		line-height: 1.3;
		word-wrap: break-word;
	}
}

@media (max-width: 480px) {
	.object-detail__feedback {
		padding: 20px 12px;
	}
	
	.object-detail__feedback-title {
		font-size: 18px;
	}
	
	.object-detail__feedback-content .btn {
		padding: 12px 12px;
		font-size: 13px;
	}
}

/* Стили для сетки товаров в каталоге */
.object-detail__products .catalog-section-wrapper .display_list {
	display: flex !important;
	flex-wrap: wrap !important;
	margin: 0 -10px !important;
}
.object-detail__products .catalog-section-wrapper .display_list > * {
	width: calc(25% - 20px) !important;
	margin: 0 10px 20px !important;
	flex: 0 0 auto !important;
}
@media (max-width: 1200px) {
	.object-detail__products .catalog-section-wrapper .display_list > * {
		width: calc(33.333% - 20px) !important;
	}
}
@media (max-width: 768px) {
	.object-detail__products .catalog-section-wrapper .display_list > * {
		width: calc(50% - 20px) !important;
	}
}
@media (max-width: 480px) {
	.object-detail__products .catalog-section-wrapper .display_list > * {
		width: 100% !important;
	}
}

