/* Начало: общие варианты скачивания */
.dobro-app-download-options__description {
	margin: 0 0 24px;
	color: var(--dobro-color-muted);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.dobro-app-download-options__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
}

.dobro-app-download-options__store {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	min-width: 0;
}

.dobro-app-download-options[data-dobro-app-context="page"] .dobro-app-download-options__store {
	padding: 22px;
	background: #f4f4f4;
	border: 1px solid var(--dobro-color-border);
	border-radius: 24px;
}

.dobro-app-download-options[data-dobro-app-context="modal"] .dobro-app-download-options__grid {
	row-gap: 18px;
}

.dobro-app-download-options[data-dobro-app-context="modal"] .dobro-app-download-options__store {
	padding: 28px 24px;
	background: var(--dobro-color-white);
	border: 0;
	border-radius: 28px;
	box-shadow: 0 0 32px rgba(0, 0, 0, 0.14);
}

.dobro-app-download-options__qr-link,
.dobro-app-download-options__badge-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
}

.dobro-app-download-options__qr-link:focus-visible,
.dobro-app-download-options__badge-link:focus-visible {
	outline: 2px solid var(--dobro-color-orange);
	outline-offset: 4px;
}

.dobro-app-download-options .dobro-app-download-options__qr {
	display: block;
	width: 200px;
	height: 200px;
	object-fit: contain;
}

.dobro-app-download-options .dobro-app-download-options__badge {
	display: block;
	width: 162px;
	max-width: 100%;
	height: 48px;
	object-fit: contain;
}

.dobro-app-download-options__unavailable {
	margin: 0;
	padding: 24px;
	background: #f4f4f4;
	border-radius: 18px;
	color: var(--dobro-color-muted);
	text-align: center;
}
/* Конец: общие варианты скачивания */

/* Начало: модальное окно */
body.dobro-app-modal-open {
	overflow: hidden;
}

.dobro-app-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	place-items: center;
	padding: 24px;
}

.dobro-app-modal:not([hidden]) {
	display: grid;
}

.dobro-app-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.68);
}

.dobro-app-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 720px);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	padding: 36px;
	overflow-y: auto;
	background: var(--dobro-color-white);
	border-radius: 30px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.dobro-app-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: #eeeeee;
	border: 0;
	border-radius: 50%;
	color: var(--dobro-color-black);
	cursor: pointer;
	transition: background-color var(--dobro-transition), color var(--dobro-transition);
}

.dobro-app-modal__close:hover {
	background: var(--dobro-color-orange);
	color: var(--dobro-color-white);
}

.dobro-app-modal__close:focus-visible {
	outline: 2px solid var(--dobro-color-orange);
	outline-offset: 3px;
}

.dobro-app-modal__header {
	padding: 4px 54px 26px;
	text-align: center;
}

.dobro-app-modal__title {
	margin: 0;
	color: #ee0800;
	font-family: "Cy Grotesk", var(--dobro-font-display);
	font-size: clamp(36px, 4vw, 44px);
	font-weight: 800;
	line-height: 0.92;
	text-transform: uppercase;
}
/* Конец: модальное окно */

/* Начало: резервная страница приложения */
.dobro-app-page {
	width: 100%;
	min-height: 70vh;
	padding: 20px 0 100px;
	background: var(--dobro-color-bg);
}

.dobro-app-page__container {
	max-width: 900px;
}

.dobro-app-page__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 24px;
	font-size: 10px;
	font-weight: 500;
	line-height: 12px;
}

.dobro-app-page__breadcrumb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 12px;
	background: #e0e0e0;
	border-radius: 20px;
	color: #757575;
	text-decoration: none;
	transition: background-color var(--dobro-transition), color var(--dobro-transition);
}

a.dobro-app-page__breadcrumb:hover {
	background: #d5d5d5;
	color: #242424;
}

a.dobro-app-page__breadcrumb:focus-visible {
	outline: 2px solid var(--dobro-color-orange);
	outline-offset: 2px;
}

.dobro-app-page__breadcrumb.is-current {
	background: var(--dobro-color-black);
	color: var(--dobro-color-white);
}

.dobro-app-page__content {
	padding: 48px;
	background: var(--dobro-color-white);
	border-radius: 40px;
}

.dobro-app-page__header {
	margin-bottom: 30px;
	text-align: center;
}

.dobro-app-page__title {
	margin: 0;
	color: #e20b07;
	font-family: var(--dobro-font-display);
	font-size: clamp(48px, 7vw, 76px);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
}

.dobro-app-page__intro {
	margin: 16px 0 0;
	color: var(--dobro-color-muted);
	font-size: 16px;
	line-height: 1.5;
}

.dobro-app-page__back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 46px;
	margin: 28px auto 0;
	padding: 10px 24px;
	background: var(--dobro-color-black);
	border-radius: 999px;
	color: var(--dobro-color-white);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--dobro-transition);
}

.dobro-app-page__back:hover {
	background: #e20b07;
	color: var(--dobro-color-white);
}

.dobro-app-page__back:focus-visible {
	outline: 2px solid var(--dobro-color-orange);
	outline-offset: 3px;
}
/* Конец: резервная страница приложения */

@media (max-width: 600px) {
	.dobro-app-modal {
		padding: 12px;
	}

	.dobro-app-modal__dialog {
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		padding: 28px 18px;
		border-radius: 24px;
	}

	.dobro-app-modal__close {
		top: 14px;
		right: 14px;
	}

    .dobro-app-modal__header {
        padding: 6px 48px 22px;
    }

	.dobro-app-modal__title {
		font-size: 32px;
	}

	.dobro-app-download-options__grid {
		grid-template-columns: 1fr;
	}

	.dobro-app-page {
		padding-bottom: 60px;
	}

	.dobro-app-page__content {
		padding: 32px 18px;
		border-radius: 28px;
	}

	.dobro-app-page__title {
		font-size: 48px;
	}
}
