/**
 * «Features That Make Us Different» (донор: .bfkto / .bizi-farkli-kilan-teknik-ozellikler).
 */

.gp-features {
	padding: clamp(2.5rem, 6vw, 4rem) 2%;
	background: #fff;
	color: #231f20;
}

.gp-features__inner {
	max-width: 1340px;
	margin: 0 auto;
}

/* Слайдер шире, колонка с фото уже */
.gp-features__row {
	display: grid;
	grid-template-columns: minmax(0, 58%) minmax(0, 42%);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: start;
}

.gp-features__left > .gp-features__title:not(.gp-features__title--accent) {
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
	color: #231f20;
}

.gp-features__title {
	margin: 0;
}

.gp-features__title--accent {
	margin: 0 0 clamp(1.25rem, 3vw, 2rem);
	font-weight: 400;
	color: #be0000;
}

.gp-features__slider-wrap {
	display: flex;
	flex-direction: column;
	min-height: min(22rem, 55vh);
}

.gp-features__slider {
	position: relative;
	flex: 1 1 auto;
}

.gp-features__track {
	position: relative;
	min-height: clamp(16rem, 38vh, 22rem);
}

/* Плавная смена слайдов (как owl, ~1.5s на доноре) */
.gp-features__slide {
	position: absolute;
	inset: 0;
	width: 100%;
	margin-top: 0;
	padding-right: clamp(3rem, 8vw, 5rem);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate3d(28px, 0, 0);
	transition:
		opacity 0.65s ease,
		transform 0.65s ease,
		visibility 0.65s ease;
}

.gp-features__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate3d(0, 0, 0);
	z-index: 1;
}

.gp-features__slide.is-exiting {
	opacity: 0;
	transform: translate3d(-20px, 0, 0);
	z-index: 0;
}

/* Стрелки внизу блока слайдера (донор: .bfkto-owl .owl-nav) */
.gp-features__nav {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin: clamp(1.25rem, 3vw, 2rem) 0 0;
	padding-top: 0.5rem;
	text-align: left;
}

.gp-features__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
	border: none;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.gp-features__arrow:hover,
.gp-features__arrow:focus-visible {
	opacity: 0.75;
	transform: scale(1.05);
}

.gp-features__arrow img {
	width: auto;
	height: auto;
	max-height: 28px;
	display: block;
}

.gp-features__icon {
	width: 80px;
	height: 80px;
	margin-bottom: 5%;
	object-fit: contain;
	display: block;
}

.gp-features__card-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 600;
	line-height: 1.2;
	color: #231f20;
}

.gp-features__card-text {
	max-width: 88%;
	font-weight: 300;
	font-size: clamp(0.9rem, 1.2vw, 1rem);
	line-height: 1.55;
	color: #231f20;
}

.gp-features__card-text p {
	margin: 0;
}

.gp-features__number {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	font-weight: 300;
	font-size: clamp(4rem, 12vw, 7.5rem);
	line-height: 0.9;
	color: #d2d2d2;
	pointer-events: none;
	user-select: none;
}

.gp-features__right {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding-top: 0.25rem;
	background-image: url("../img/home/bfkto-right.png");
	background-size: 72% auto;
	background-repeat: no-repeat;
	background-position: center bottom;
}

/* Вспомогательный текст над изображением (как на доноре — рамка) */
.gp-features__lead {
	order: -1;
	margin: 0 0 clamp(1rem, 2.5vw, 1.5rem);
	padding: clamp(0.85rem, 2vw, 1.1rem) clamp(1rem, 2.5vw, 1.25rem);
	max-width: none;
	font-weight: 275;
	font-size: clamp(0.875rem, 1.2vw, 1.05rem);
	line-height: 1.55;
	color: #231f20;
	background: #fff;
	border: 1px dotted rgba(190, 0, 0, 0.55);
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.gp-features__figure {
	position: relative;
	z-index: 1;
	width: 72%;
	margin: 0 auto;
}

.gp-features__figure img,
.gp-features__photo {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(340px, 36vh);
	object-fit: contain;
	object-position: center bottom;
}

@media (max-width: 960px) {
	.gp-features__row {
		grid-template-columns: 1fr;
	}

	.gp-features__right {
		background-size: 85% auto;
		background-position: center bottom;
	}

	.gp-features__figure {
		width: 88%;
	}

	.gp-features__photo {
		max-height: min(300px, 50vw);
	}

	.gp-features__card-text {
		max-width: 100%;
	}

	.gp-features__number {
		font-size: clamp(3rem, 18vw, 5rem);
	}

	.gp-features__track {
		min-height: 14rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gp-features__slide {
		transition: none;
		transform: none;
	}

	.gp-features__slide:not(.is-active) {
		display: none;
	}
}
