/*
 * Карточки «Выполненные работы» — только внешний вид.
 * Откат: скопировать _backup/work-card-thumbs.css.bak-20260825 поверх этого файла
 * и вернуть в чанках ссылку work-card-thumbs.css?v=3
 */

/* === Сетка карточек на главной === */
.news .col .new {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: 100%;
	margin-bottom: 0;
	padding: 0;
	text-align: left;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.news .col .new:hover {
	padding: 0;
	cursor: pointer;
	background: #fff;
	border: 1px solid #c23736;
	box-shadow: 0 8px 20px rgba(194, 55, 54, 0.16);
	transform: translateY(-3px);
}

/* Фото на всю ширину карточки, 4:3 */
.news .col .new picture {
	display: block;
	width: 100%;
	margin: 0;
	align-self: stretch;
	overflow: hidden;
	background: #ececec;
	line-height: 0;
}

.news .col .new img,
.news .col .new picture img {
	display: block;
	float: none;
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	max-height: none !important;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	background: #ececec;
	transition: transform 0.35s ease;
}

.news .col .new:hover img,
.news .col .new:hover picture img {
	background: transparent;
}

.news .col .new .work-card-preview:hover img,
.news .col .new .work-card-preview:hover picture img {
	transform: none;
}

.news .col .new .cont {
	flex: 1 1 auto;
	margin: 0;
	padding: 12px 13px 14px;
	box-sizing: border-box;
	color: #5c5c5c;
	font-size: 11px;
	line-height: 1.45;
}

.news .col .new .cont span {
	display: block;
	color: #9a9a9a;
	font-size: 10px;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
}

.news .col .new .cont p {
	color: #c23736;
	margin: 0 0 8px;
	line-height: 1.35;
}

.news .col .new .cont a {
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	color: #c23736;
	line-height: 1.35;
}

.news .col .new .cont a:hover {
	text-decoration: underline;
}

.news .col.left,
.news .col .new img.left {
	float: none;
}

/* Desktop: карточки на главной — фото на всю ширину */
@media (min-width: 768px) {
	.news .col .new picture {
		display: block;
		align-self: stretch;
		margin: 0;
	}

	.news .col .new picture img {
		display: block;
		float: none;
		margin: 0;
		width: 100%;
		height: auto;
	}

	/* Список /news.html: не растягивать превью до 480px */
	.new .thumb {
		float: left;
		width: 140px;
		margin: 0 12px 8px 0;
	}

	.new .thumb picture {
		display: block;
		width: 140px;
	}

	.new .thumb img,
	.new .thumb picture img {
		display: block;
		width: 140px !important;
		height: 105px !important;
		max-width: 140px;
		object-fit: cover;
		aspect-ratio: 4 / 3;
	}

	/* /news.html: дата и текст правее и ниже превью 140px (не карточки главной) */
	.new > .thumb ~ .desc {
		padding-left: 156px;
		margin-top: 0;
	}

	.new > .thumb ~ .desc label {
		display: block;
		margin: 2px 0 8px;
		line-height: 1.3;
	}
}

/* Телефон: полноширинное превью 4:3 (phpThumb) + те же карточки */
@media (max-width: 767px) {
	.news .new picture,
	.thumb picture {
		display: block;
		width: 100%;
	}

	.news .new img,
	.news .new picture img,
	.thumb img,
	.thumb picture img {
		display: block;
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: none;
		margin: 0;
		object-fit: cover;
		aspect-ratio: 4 / 3;
	}

	.news .col .new {
		border-radius: 8px;
	}

	.news .col .new img,
	.news .col .new picture img {
		border-radius: 0;
	}

	.new > .thumb ~ .desc {
		padding-left: 0;
		margin-top: 10px;
	}

}

/* Карусель фото на карточках главной */
.news .col .new .work-card-preview {
	position: relative;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #ececec;
	line-height: 0;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.news .col .new .work-card-preview picture,
.news .col .new .work-card-preview > img.work-card-slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	min-width: 100%;
	height: 100%;
	left: 0;
	margin: 0;
	align-self: stretch;
	overflow: hidden;
	transition: left 0.3s linear;
}

.news .col .new .work-card-preview img,
.news .col .new .work-card-preview picture img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	object-fit: cover;
	aspect-ratio: auto;
	transform: none !important;
}

.news .col .new .work-card-preview.is-dragging {
	cursor: grabbing;
}

.news .col .new .work-card-prev,
.news .col .new .work-card-next {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(194, 55, 54, 0.88);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-50%);
	transition: opacity 0.2s ease;
}

.news .col .new .work-card-prev {
	left: 6px;
}

.news .col .new .work-card-next {
	right: 6px;
}

.news .col .new .work-card-count {
	position: absolute;
	bottom: 6px;
	left: 50%;
	z-index: 5;
	transform: translateX(-50%);
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 11px;
	line-height: 1.3;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

.news .col .new .work-card-preview.is-gallery .work-card-prev,
.news .col .new .work-card-preview.is-gallery .work-card-next,
.news .col .new .work-card-preview.is-gallery .work-card-count {
	opacity: 1;
}

.news .col .new .work-card-prev:hover,
.news .col .new .work-card-next:hover {
	background: #c23736;
}

/* Только блок «Смотрите также новости по группе» внутри работы.
   Не трогает карточки на главной и на стропальных. */
.item_related .new {
	display: block;
	overflow: hidden;
	height: auto;
	margin: 0 0 14px;
	padding: 0 0 10px;
	clear: both;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}

.item_related .new:hover {
	background: transparent;
	border: 0;
	box-shadow: none;
	transform: none;
}

.item_related .new .work-card-preview {
	float: left;
	display: block;
	width: 100px;
	height: 75px;
	margin: 0 12px 4px 0;
	aspect-ratio: auto;
	overflow: hidden;
	background: #ececec;
}

.item_related .new .work-card-preview picture,
.item_related .new .work-card-preview img,
.item_related .new .work-card-preview picture img {
	float: none;
	width: 100px !important;
	height: 75px !important;
	max-width: 100px !important;
	max-height: 75px !important;
	aspect-ratio: auto !important;
	object-fit: cover;
}

.item_related .new .cont {
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.item_related .work-card-prev,
.item_related .work-card-next,
.item_related .work-card-count {
	display: none;
}

