/* Начало: блок промобаннеров */
.dobro-promo-banners {
	--dobro-rail-side-offset: 40px;
	width: 100%;
	padding-top: 40px;
	overflow: visible;
}

.dobro-promo-banners__head {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 24%, 300px);
	width: 100%;
	height: 29px;
	margin: 0 0 28px;
}

.dobro-promo-banners__title {
	flex: 0 1 453px;
	width: 453px;
	height: 29px;
	margin: 0;
	color: #ee0800;
	font-family: "Cy Grotesk", var(--dobro-font-display);
	font-size: 40px;
	font-weight: 800;
	line-height: 29px;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.dobro-promo-banners__viewport {
	width: 100%;
	margin: 0;
}

.dobro-promo-banners:not(.is-dobro-rail-active) .dobro-rail__viewport {
	overflow: hidden;
	scroll-snap-type: none;
	mask-image: none;
	-webkit-mask-image: none;
}

.dobro-promo-banners__inner {
	display: grid;
	grid-template-columns: repeat(2, 576px);
	justify-content: center;
	gap: 24px;
	width: 100%;
	margin: 0;
}

.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banners__inner {
	display: flex;
	justify-content: flex-start;
	width: max-content;
	padding: 0;
}

.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banner {
	flex: 0 0 576px;
}

@container dobro-home (min-width: 1101px) {
	.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banners__viewport {
		box-sizing: border-box;
		width: calc(100% + 104px);
		max-width: none;
		margin-inline: -52px;
	}

	.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banners__inner {
		padding-inline: var(--dobro-rail-side-offset);
	}
}

@container dobro-home (max-width: 1100px) {
	.dobro-promo-banners__head {
		justify-content: space-between;
		gap: 24px;
	}

	.dobro-promo-banners__title {
		flex: 1 1 auto;
		font-size: 30px;
		line-height: 1.05;
		white-space: normal;
	}

	.dobro-promo-banners:not(.is-dobro-rail-active) .dobro-promo-banners__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dobro-promo-banners:not(.is-dobro-rail-active) .dobro-promo-banner {
		width: 100%;
		height: auto;
		aspect-ratio: 576 / 270;
		border-radius: min(60px, 5cqw);
	}

	.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banner {
		flex-basis: min(576px, calc(100cqw - 48px));
		width: min(576px, calc(100cqw - 48px));
	}
}
/* Конец: блок промобаннеров */

/* Начало: промобаннер */
.dobro-promo-banner {
	position: relative;
	container: dobro-promo-banner / inline-size;
	box-sizing: border-box;
	width: 576px;
	height: 270px;
	margin: 0;
	overflow: hidden;
	border-radius: 60px;
}

.dobro-promo-banner--business {
	background: #000000;
}

.dobro-promo-banner--app {
	background: #ee0800;
}

.dobro-promo-banner__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
	pointer-events: none;
	user-select: none;
}
/* Конец: промобаннер */

/* Начало: кнопки промобаннеров */
.dobro-promo-banner__button {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	padding: 0 24px;
	border-radius: 30px;
	font-family: var(--dobro-font-base);
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	transition: background-color var(--dobro-transition), color var(--dobro-transition), transform var(--dobro-transition);
}

.dobro-promo-banner__button--business {
	top: 61.1111%;
	right: 4.3403%;
	left: 52.4306%;
	background: #ffe600;
	color: #000000;
}

.dobro-promo-banner__button--business:active {
	background: #ffc800;
	color: #000000;
	transform: scale(0.98);
}

.dobro-promo-banner__button--app,
.dobro-promo-banner__button--app:focus {
	top: 60.3704%;
	right: 4.3403%;
	left: 50%;
	background: #000000;
	color: #efebdc;
}

.dobro-promo-banner__button--app:active {
	background: #333333;
	color: #ffffff;
	transform: scale(0.98);
}

.dobro-promo-banner__button:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}
/* Конец: кнопки промобаннеров */

@media (hover: hover) and (pointer: fine) {
	.dobro-promo-banner__button--business:hover {
		background: #ffd500;
		color: #000000;
	}

	.dobro-promo-banner__button--app:hover {
		background: #242424;
		color: #ffffff;
	}
}

/* Начало: мобильная версия промобаннеров */
@container dobro-home (max-width: 700px) {
	.dobro-promo-banners {
		--dobro-rail-side-offset: 0px;
		padding-top: 32px;
	}

	.dobro-promo-banners__head {
		flex-direction: column;
		gap: 16px;
		height: auto;
		margin-bottom: 16px;
	}

	.dobro-promo-banners__title {
		flex: 0 1 auto;
		width: 100%;
		height: auto;
		font-size: clamp(20px, 8cqw, 26px);
		line-height: 1.12;
		white-space: normal;
	}

	.dobro-promo-banners__head .dobro-rail__navigation:not([hidden]) {
		justify-content: center;
		margin-inline: auto;
	}

	.dobro-promo-banners__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		width: 100%;
	}

	.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banners__inner {
		display: flex;
		width: max-content;
		padding: 0;
	}

	.dobro-promo-banner {
		width: 100cqw;
		height: auto;
		aspect-ratio: 375 / 500;
	}

	.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banner {
		flex-basis: calc(100cqw - 48px);
		width: calc(100cqw - 48px);
	}

	.dobro-promo-banner--business {
		border-radius: 12cqw;
	}

	.dobro-promo-banner--app {
		border-radius: 16cqw;
	}

	.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banner--business {
		border-radius: calc(12cqw - 5.76px);
	}

	.dobro-promo-banners.is-dobro-rail-active .dobro-promo-banner--app {
		border-radius: calc(16cqw - 7.68px);
	}

	.dobro-promo-banner__image {
		border-radius: inherit;
	}

	.dobro-promo-banner__button {
		height: 16cqw;
		padding-inline: 6.4cqw;
		border-radius: 8cqw;
		font-size: 3.733333cqw;
		line-height: 4.266667cqw;
	}

	.dobro-promo-banner__button--business {
		top: 112cqw;
		right: 4.266667cqw;
		left: 4.266667cqw;
	}

	.dobro-promo-banner__button--app,
	.dobro-promo-banner__button--app:focus {
		top: 43.466667cqw;
		right: 14.666667cqw;
		left: 14.933333cqw;
	}
}
/* Конец: мобильная версия промобаннеров */
