/* ─────────────────────────────────────────────
   Промо-блок доставки
   ───────────────────────────────────────────── */

.delivery-promo {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(760px, 54vw, 900px);
	padding: 62px 0 34px;
	background: var(--color-bg);
}

.delivery-promo::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	background-image: var(--delivery-background, none);
	background-position: var(--delivery-background-position, center center);
	background-repeat: no-repeat;
	background-size: cover;
	content: "";
}

.delivery-promo::after {
	position: absolute;
	z-index: 0;
	inset: 0;
	background:
		linear-gradient(
			90deg,
			var(--color-bg) 0%,
			color-mix(in srgb, var(--color-bg) 97%, transparent) 24%,
			color-mix(in srgb, var(--color-bg) 76%, transparent) 43%,
			transparent 66%
		),
		linear-gradient(
			180deg,
			color-mix(in srgb, var(--color-bg) 12%, transparent) 58%,
			color-mix(in srgb, var(--color-bg) 72%, transparent) 100%
		);
	pointer-events: none;
	content: "";
}

.delivery-promo__logo-card {
	position: absolute;
	z-index: 2;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(240px, 20vw, 350px);
	height: clamp(156px, 13vw, 224px);
	padding: 34px;
	border-radius: 0 0 0 clamp(44px, 5vw, 82px);
	background: var(--color-primary);
	color: var(--color-bg);
	box-shadow: 0 20px 48px var(--color-primary-opacity-20);
}

.delivery-promo__logo-card img,
.delivery-promo__logo-card svg {
	display: block;
	width: 100%;
	max-width: 190px;
	height: 100%;
	max-height: 120px;
	object-fit: contain;
}

.delivery-promo__logo-card svg {
	color: inherit;
}

.delivery-promo__container {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	min-height: calc(clamp(760px, 54vw, 900px) - 96px);
}

.delivery-promo__content {
	width: min(610px, 50%);
}

.delivery-promo__title {
	margin: 0;
	color: var(--color-primary);
	font-family: var(--font-title);
	font-size: clamp(52px, 5.1vw, 84px);
	font-weight: 800;
	line-height: .94;
	letter-spacing: -.05em;
	text-wrap: balance;
}

.delivery-promo__subtitle {
	max-width: 520px;
	margin: 28px 0 0;
	color: var(--color-primary);
	font-family: var(--font-title);
	font-size: clamp(22px, 2vw, 32px);
	font-weight: 700;
	line-height: 1.15;
	text-wrap: balance;
}

.delivery-promo__divider {
	width: 68px;
	height: 4px;
	margin-top: 28px;
	border-radius: var(--radius-btn);
	background: var(--color-accent);
}

.delivery-promo__text {
	max-width: 390px;
	margin: 20px 0 0;
	color: var(--color-text);
	font-size: 17px;
	line-height: 1.5;
}

.delivery-promo__status {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 14px;
	width: fit-content;
	max-width: 430px;
	margin-top: auto;
	margin-bottom: 25px;
	padding: 14px 24px;
	border-radius: var(--radius-btn);
	background: var(--color-primary);
	color: var(--color-bg);
	box-shadow: 0 16px 38px var(--color-primary-opacity-20);
}

.delivery-promo__status--has-icon {
	grid-template-columns: 62px minmax(0, 1fr);
}

.delivery-promo__status-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 2px solid color-mix(in srgb, var(--color-bg) 72%, transparent);
	border-radius: 50%;
	background: var(--color-bg);
	color: var(--color-primary);
}

.delivery-promo__status-icon img,
.delivery-promo__status-icon svg {
	display: block;
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.delivery-promo__status-content,
.delivery-promo__benefit-content {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	min-width: 0;
}

.delivery-promo__status-title {
	font-family: var(--font-title);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.15;
}

.delivery-promo__status-text {
	margin-top: 2px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
}

.delivery-promo__benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
	padding: 18px 24px;
	border: 1px solid var(--color-primary-opacity-10);
	border-radius: var(--radius-card);
	background: var(--color-bg);
	background: color-mix(in srgb, var(--color-bg) 86%, transparent);
	box-shadow: 0 16px 42px var(--color-primary-opacity-10);
	backdrop-filter: blur(12px);
}

.delivery-promo:not(.delivery-promo--has-status) .delivery-promo__benefits {
	margin-top: auto;
}

.delivery-promo__benefit {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	gap: 13px;
	min-width: 0;
}

.delivery-promo__benefit--has-icon {
	grid-template-columns: 54px minmax(0, 1fr);
}

.delivery-promo__benefit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 2px solid var(--color-primary-opacity-30);
	border-radius: 50%;
	background: var(--color-bg);
	color: var(--color-primary);
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.delivery-promo__benefit:hover .delivery-promo__benefit-icon {
	border-color: var(--color-primary);
	background: var(--color-primary-opacity-10);
	transform: translateY(-2px);
}

.delivery-promo__benefit-icon img,
.delivery-promo__benefit-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.delivery-promo__benefit-title {
	color: var(--color-primary);
	font-family: var(--font-title);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
}

.delivery-promo__benefit-text {
	margin-top: 2px;
	color: var(--color-text-light);
	font-size: 13px;
	line-height: 1.35;
}

@media (max-width: 990px) {
	.delivery-promo {
		min-height: 720px;
		padding: 48px 0 28px;
	}

	.delivery-promo__logo-card {
		width: 205px;
		height: 142px;
		padding: 28px;
		border-radius: 0 0 0 48px;
	}

	.delivery-promo__container {
		min-height: 644px;
	}

	.delivery-promo__content {
		width: 57%;
	}

	.delivery-promo__title {
		font-size: clamp(44px, 6vw, 60px);
	}

	.delivery-promo__subtitle {
		margin-top: 20px;
		font-size: clamp(20px, 2.7vw, 26px);
	}

	.delivery-promo__divider {
		margin-top: 20px;
	}

	.delivery-promo__text {
		max-width: 330px;
		margin-top: 15px;
		font-size: 14px;
	}

	.delivery-promo__status {
		margin-bottom: 18px;
		padding: 11px 18px;
	}

	.delivery-promo__status--has-icon {
		grid-template-columns: 52px minmax(0, 1fr);
	}

	.delivery-promo__status-icon {
		width: 48px;
		height: 48px;
	}

	.delivery-promo__status-icon img,
	.delivery-promo__status-icon svg {
		width: 28px;
		height: 28px;
	}

	.delivery-promo__status-title {
		font-size: 18px;
	}

	.delivery-promo__status-text {
		font-size: 13px;
	}

	.delivery-promo__benefits {
		gap: 14px;
		padding: 15px;
	}

	.delivery-promo__benefit--has-icon {
		grid-template-columns: 45px minmax(0, 1fr);
		gap: 9px;
	}

	.delivery-promo__benefit-icon {
		width: 42px;
		height: 42px;
	}

	.delivery-promo__benefit-icon img,
	.delivery-promo__benefit-icon svg {
		width: 23px;
		height: 23px;
	}

	.delivery-promo__benefit-title {
		font-size: 13px;
	}

	.delivery-promo__benefit-text {
		font-size: 11px;
	}
}

@media (max-width: 560px) {
	.delivery-promo {
		min-height: 0;
		padding: 34px 0 28px;
	}

	.delivery-promo--has-logo {
		padding-top: 110px;
	}

	.delivery-promo::before {
		background-image: var(--delivery-background-mobile, var(--delivery-background, none));
		background-position: center bottom;
		opacity: .68;
	}

	.delivery-promo::after {
		background: linear-gradient(
			180deg,
			var(--color-bg) 0%,
			color-mix(in srgb, var(--color-bg) 97%, transparent) 48%,
			color-mix(in srgb, var(--color-bg) 72%, transparent) 74%,
			color-mix(in srgb, var(--color-bg) 88%, transparent) 100%
		);
	}

	.delivery-promo__logo-card {
		top: 0;
		left: 0;
		width: 100%;
		height: 82px;
		padding: 14px 24px;
		border-radius: 0 0 28px 28px;
	}

	.delivery-promo__logo-card img,
	.delivery-promo__logo-card svg {
		max-width: 138px;
		max-height: 54px;
	}

	.delivery-promo__container {
		display: block;
		min-height: 0;
	}

	.delivery-promo__content {
		width: 100%;
	}

	.delivery-promo__title {
		font-size: clamp(36px, 11vw, 48px);
		line-height: .98;
		text-align: center;
	}

	.delivery-promo__subtitle {
		margin-top: 17px;
		font-size: 20px;
		text-align: center;
	}

	.delivery-promo__divider {
		width: 54px;
		margin: 18px auto 0;
	}

	.delivery-promo__text {
		max-width: 100%;
		margin-top: 14px;
		padding: 14px;
		border-radius: var(--radius-card);
		background: var(--color-bg);
		background: color-mix(in srgb, var(--color-bg) 84%, transparent);
		font-size: 14px;
		text-align: center;
		backdrop-filter: blur(8px);
	}

	.delivery-promo__status {
		justify-content: center;
		width: 100%;
		max-width: none;
		margin: 220px 0 18px;
		padding: 12px 16px;
	}

	.delivery-promo__status--has-icon {
		grid-template-columns: 48px minmax(0, auto);
	}

	.delivery-promo__status-content {
		align-items: flex-start;
	}

	.delivery-promo__benefits {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 8px 16px;
		background: color-mix(in srgb, var(--color-bg) 92%, transparent);
	}

	.delivery-promo:not(.delivery-promo--has-status) .delivery-promo__benefits {
		margin-top: 220px;
	}

	.delivery-promo__benefit {
		padding: 11px 0;
		border-bottom: 1px solid var(--color-primary-opacity-10);
	}

	.delivery-promo__benefit:last-child {
		border-bottom: 0;
	}

	.delivery-promo__benefit--has-icon {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 12px;
	}

	.delivery-promo__benefit-icon {
		width: 44px;
		height: 44px;
	}

	.delivery-promo__benefit-title {
		font-size: 14px;
	}

	.delivery-promo__benefit-text {
		font-size: 12px;
	}
}
