/* Owner-supplied editorial photography; the approved hero is untouched. */
.editorial-4 .ed-photo-window {
	position: relative;
	overflow: hidden;
	background: #d9e4e8;
}

.editorial-4 .ed-editorial-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.editorial-4 .ed-photo-window > .ed-editorial-photo {
	scale: 1;
	transition: transform .7s cubic-bezier(.22, 1, .36, 1), scale .7s cubic-bezier(.22, 1, .36, 1);
}

/* Compact offer cards retain every price, dimension and confirmation field. */
.editorial-4 .ed-property-image {
	aspect-ratio: 16 / 9;
}

.editorial-4 .ed-property-body {
	padding: 20px;
}

.editorial-4 .ed-property h3 {
	min-height: 0;
	font-size: 22px;
	line-height: 1.3;
}

.editorial-4 p.ed-district {
	margin-bottom: 7px;
}

.editorial-4 .ed-property-price {
	margin: 15px 0 14px;
}

.editorial-4 .ed-property-price dd {
	font-size: 30px;
}

.editorial-4 .ed-property-price dt {
	margin-bottom: 3px;
}

.editorial-4 .ed-property-facts {
	gap: 7px;
	padding-block: 12px;
}

.editorial-4 p.ed-verified {
	margin: 11px 0 14px;
}

.editorial-4 .ed-property .ed-button {
	min-height: 48px;
	padding-block: 12px;
}

.editorial-4 .ed-property-image img {
	object-position: center;
}

/* Quiet image strips add context without turning each decision into a tall tile. */
.editorial-4 .ed-goals {
	gap: 0 40px;
}

.editorial-4 .ed-goal.ed-goal-with-photo {
	display: grid;
	grid-template-columns: minmax(120px, .64fr) minmax(0, 1.36fr);
	align-items: stretch;
	gap: 24px;
	padding-block: 28px;
}

.editorial-4 .ed-goal-photo {
	min-height: 232px;
	border-radius: 12px;
}

.editorial-4 .ed-goal-with-photo:first-child .ed-goal-photo img {
	object-position: 68% center;
}

.editorial-4 .ed-goal-photo img[data-editorial-photo="kupit-kvartiru-dlya-grajdanstva-turtsii"] {
	object-position: 72% center;
}

@media (max-width: 600px) {
	.editorial-4 .ed-goal-photo img[data-editorial-photo="dom-dlya-otdiha-u-doma"] {
		object-position: center 90%;
	}
}

.editorial-4 .ed-goal-body {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 12px;
	align-content: start;
}

.editorial-4 .ed-goal-body h3 {
	font-size: 23px;
}

.editorial-4 .ed-goal-body p {
	margin-top: 12px;
}

.editorial-4 .ed-goal-body .ed-text-link {
	margin-top: 8px;
}

/* The existing sticky stack keeps its full text beside the relevant image. */
.editorial-4 .ed-trust-reasons article.ed-trust-card {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(150px, .9fr);
	gap: 0;
	min-height: 334px;
	padding: 0;
	overflow: clip;
}

.editorial-4 .ed-trust-copy {
	min-width: 0;
	padding: 28px 26px;
}

.editorial-4 .ed-trust-copy .ed-number {
	margin-bottom: 22px;
	padding: 0;
}

.editorial-4 .ed-trust-copy h3 {
	font-size: 24px;
	line-height: 1.27;
	text-wrap: balance;
}

.editorial-4 .ed-trust-copy p {
	font-size: 15px;
	line-height: 1.6;
	margin-top: 14px;
}

.editorial-4 .ed-trust-photo {
	align-self: stretch;
	min-height: 100%;
	border-radius: 0 15px 15px 0;
}

.editorial-4 .ed-trust-photo img {
	position: absolute;
	inset: 0;
}

.editorial-4 .ed-trust-card:nth-child(1) .ed-trust-photo img {
	object-position: 58% center;
}

.editorial-4 .ed-trust-card:nth-child(2) .ed-trust-photo img {
	object-position: 35% center;
}

.editorial-4 .ed-trust-card:nth-child(3) .ed-trust-photo img {
	object-position: 49% center;
}

.editorial-4 .ed-service-photo img {
	object-position: 56% center;
}

.editorial-4 .ed-view-image img {
	object-position: 62% center;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.editorial-4 .ed-goal:hover .ed-editorial-photo,
	.editorial-4 .ed-trust-card:hover .ed-editorial-photo,
	.editorial-4 .ed-service-photo:hover .ed-editorial-photo,
	.editorial-4 .ed-view-image:hover .ed-editorial-photo {
		scale: 1.035;
	}
}

/* Compositor-only scroll detail; browsers without view timelines show static images. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.editorial-4 .ed-goal-photo > .ed-editorial-photo,
		.editorial-4 .ed-service-photo > .ed-editorial-photo {
			animation: ed-photo-settle linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 100%;
		}
	}
}

@keyframes ed-photo-settle {
	from { transform: scale(1.065); }
	to { transform: scale(1); }
}

@media (max-width: 1240px) and (min-width: 851px) {
	.editorial-4 .ed-trust-reasons article.ed-trust-card {
		grid-template-columns: minmax(0, 1.45fr) minmax(132px, .85fr);
		min-height: 354px;
	}

	.editorial-4 .ed-trust-copy {
		padding: 24px 22px;
	}

	.editorial-4 .ed-trust-copy h3 {
		font-size: 22px;
	}

	.editorial-4 .ed-goal.ed-goal-with-photo {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.editorial-4 .ed-goal-photo {
		min-height: 0;
		height: 180px;
	}
}

@media (max-width: 850px) {
	.editorial-4 .ed-property-image {
		aspect-ratio: auto;
		min-height: 280px;
	}

	.editorial-4 .ed-property-body {
		padding: 22px;
	}

	.editorial-4 .ed-goal.ed-goal-with-photo {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.editorial-4 .ed-goal-photo {
		min-height: 0;
		height: 180px;
	}

	.editorial-4 .ed-trust-reasons article.ed-trust-card {
		grid-template-columns: minmax(0, 1.3fr) minmax(200px, .9fr);
		min-height: 280px;
	}

	.editorial-4 .ed-trust-copy {
		padding: 28px;
	}
}

@media (max-width: 600px) {
	.editorial-4 .ed-property-image {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.editorial-4 .ed-property-body {
		padding: 19px 20px 20px;
	}

	.editorial-4 .ed-property h3 {
		font-size: 23px;
	}

	.editorial-4 .ed-property-price {
		margin-block: 14px;
	}

	.editorial-4 .ed-property-price dd {
		font-size: 30px;
	}

	.editorial-4 .ed-goal.ed-goal-with-photo {
		display: grid;
		padding-block: 24px;
		gap: 20px;
	}

	.editorial-4 .ed-goal-photo {
		height: 185px;
	}

	.editorial-4 .ed-trust-reasons article.ed-trust-card {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.editorial-4 .ed-trust-copy {
		padding: 24px;
	}

	.editorial-4 .ed-trust-copy .ed-number {
		margin-bottom: 15px;
	}

	.editorial-4 .ed-trust-copy h3 {
		font-size: 23px;
	}

	.editorial-4 .ed-trust-copy p {
		font-size: 16px;
	}

	.editorial-4 .ed-trust-photo {
		grid-row: 1;
		min-height: 0;
		height: 185px;
		border-radius: 15px 15px 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.editorial-4 .ed-photo-window > .ed-editorial-photo {
		animation: none !important;
		transition: none !important;
		transform: none !important;
		scale: 1 !important;
	}
}
