/* Начало: подвал */
.dobro-footer {
	width: 100%;
	padding: 60px 0 64px;
	background: var(--dobro-color-bg);
	color: #757575;
	font-family: var(--dobro-font-base);
}

.dobro-footer *,
.dobro-footer *::before,
.dobro-footer *::after {
	box-sizing: border-box;
}

.dobro-footer__container {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 35px;
	width: 685px;
	height: 176px;
	margin: 0 auto;
}
/* Конец: подвал */

/* Начало: логотип */
.dobro-footer__logo {
	display: block;
	flex: 0 0 176px;
	width: 176px;
	height: 176px;
	margin: 0;
	text-decoration: none;
}

.dobro-footer__logo-image {
	display: block;
	width: 176px;
	height: 176px;
	object-fit: contain;
	object-position: center;
}
/* Конец: логотип */

/* Начало: содержимое */
.dobro-footer__content {
	display: flex;
	flex: 0 0 474px;
	flex-direction: column;
	align-items: flex-start;
	width: 474px;
	height: 175px;
}
/* Конец: содержимое */

/* Начало: основные ссылки */
.dobro-footer__main-nav {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	width: 474px;
	height: 10px;
	margin: 0;
	padding: 0;
}

.dobro-footer__main-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 10px;
	color: #757575;
	font-size: 14px;
	font-weight: 600;
	line-height: 10px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--dobro-transition);
}

.dobro-footer__main-link:nth-child(1) {
	flex: 0 0 130px;
	width: 130px;
}

.dobro-footer__main-link:nth-child(2) {
	flex: 0 0 83px;
	width: 83px;
}

.dobro-footer__main-link:nth-child(3) {
	flex: 0 0 122px;
	width: 122px;
}

.dobro-footer__main-link.is-active {
	color: #ff7b00;
}

.dobro-footer__main-link:focus-visible,
.dobro-footer__main-link:active {
	color: #ff7b00;
}

.dobro-footer__main-link:focus-visible {
	outline: 2px solid #ff7b00;
	outline-offset: 3px;
}
/* Конец: основные ссылки */

/* Начало: юридические ссылки */
.dobro-footer__legal-nav {
	display: grid;
	grid-template-columns: max-content max-content max-content;
	grid-template-rows: repeat(2, 10px);
	align-items: start;
	justify-content: space-between;
	row-gap: 23px;
	width: 474px;
	height: 43px;
	margin: 23px 0 0;
	padding: 0;
}

.dobro-footer__legal-link {
	display: inline-flex;
	align-items: center;
	height: 10px;
	color: #757575;
	font-size: 14px;
	font-weight: 600;
	line-height: 10px;
	text-decoration: none;
	white-space: nowrap;
	transition: color var(--dobro-transition);
}

.dobro-footer__legal-link:nth-child(1) {
	grid-column: 1 / 3;
	grid-row: 1;
}

.dobro-footer__legal-link:nth-child(2) {
	grid-column: 3;
	grid-row: 1;
}

.dobro-footer__legal-link:nth-child(3) {
	grid-column: 1;
	grid-row: 2;
}

.dobro-footer__legal-link:nth-child(4) {
	grid-column: 2;
	grid-row: 2;
}

.dobro-footer__legal-link:nth-child(5) {
	grid-column: 3;
	grid-row: 2;
}

.dobro-footer__legal-link:focus-visible,
.dobro-footer__legal-link:active {
	color: #ff7b00;
}

.dobro-footer__legal-link:focus-visible {
	outline: 2px solid #ff7b00;
	outline-offset: 3px;
}
/* Конец: юридические ссылки */

/* Начало: социальные сети */
.dobro-footer__socials {
	display: flex;
	align-items: center;
	gap: 17px;
	width: 211px;
	height: 40px;
	margin: 25px 0 0;
}

.dobro-footer__social {
	display: inline-flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #ffffff;
	border-radius: 10px;
	color: #757575;
	text-decoration: none;
	transition: background-color var(--dobro-transition), color var(--dobro-transition), transform var(--dobro-transition);
}

.dobro-footer__social svg {
	display: block;
	width: 19px;
	height: 19px;
}

.dobro-footer__social:nth-child(1) svg {
	width: 17px;
	height: 17px;
}

.dobro-footer__social:nth-child(2) svg {
	position: relative;
	left: -1px;
	width: 19px;
	height: 16px;
}

.dobro-footer__social:nth-child(3) svg {
	width: 19px;
	height: 19px;
}

.dobro-footer__social:nth-child(4) svg {
	width: 22px;
	height: 14px;
}

.dobro-footer__social:active {
	background: #ee0800;
	color: #ffffff;
	transform: translateY(0) scale(0.95);
}

.dobro-footer__social:focus-visible {
	color: #ff7b00;
	outline: 2px solid #ff7b00;
	outline-offset: 3px;
}
/* Конец: социальные сети */

/* Начало: авторские права */
.dobro-footer__copyright {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 474px;
	height: 9px;
	margin: 25px 0 0;
	color: #757575;
	font-size: 12px;
	font-weight: 500;
	line-height: 9px;
	white-space: nowrap;
}

.dobro-store .dobro-footer button.dobro-footer__cookie-settings {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: 10px;
	margin: 0;
	padding: 0;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #757575;
	font-family: inherit;
	font-size: 12px;
	font-weight: 500;
	line-height: 9px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
	transition: color var(--dobro-transition);
}

.dobro-store .dobro-footer button.dobro-footer__cookie-settings:active {
	background: transparent;
	color: #ff7b00;
}

.dobro-store .dobro-footer button.dobro-footer__cookie-settings:focus-visible {
	outline: 2px solid #ff7b00;
	outline-offset: 3px;
}
/* Конец: авторские права */

@media (hover: hover) and (pointer: fine) {
	.dobro-footer__main-link:hover,
	.dobro-footer__legal-link:hover {
		color: #ff7b00;
	}

	.dobro-footer__social:hover {
		background: #ff7b00;
		color: #ffffff;
		transform: translateY(-2px);
	}

	.dobro-store .dobro-footer button.dobro-footer__cookie-settings:hover {
		background: transparent;
		color: #ff7b00;
	}
}

/* Начало: мобильная версия подвала */
@media (max-width: 700px) {
	.dobro-footer {
		padding: 48px 24px;
	}

	.dobro-footer__container {
		flex-direction: column;
		align-items: center;
		gap: 28px;
		width: 100%;
		max-width: 474px;
		height: auto;
	}

	.dobro-footer__content {
		flex: none;
		align-items: center;
		width: 100%;
		height: auto;
	}

	.dobro-footer__main-nav {
		justify-content: center;
		flex-wrap: wrap;
		gap: 0 20px;
		width: 100%;
		height: auto;
		min-height: 44px;
	}

	.dobro-footer__main-link,
	.dobro-footer__main-link:nth-child(n) {
		flex: 0 1 auto;
		width: auto;
		height: auto;
		min-height: 44px;
		font-size: 14px;
		line-height: 20px;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.dobro-footer__legal-nav {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: none;
		gap: 8px 20px;
		width: 100%;
		height: auto;
		margin-top: 20px;
	}

	.dobro-footer__legal-link,
	.dobro-footer__legal-link:nth-child(n) {
		grid-area: auto;
		justify-content: center;
		min-width: 0;
		height: auto;
		min-height: 44px;
		font-size: 14px;
		line-height: 20px;
		text-align: center;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	.dobro-footer__legal-link:first-child {
		grid-column: 1 / -1;
	}

	.dobro-footer__socials {
		justify-content: center;
		gap: 17px;
		width: auto;
		height: 44px;
		margin-top: 24px;
	}

	.dobro-footer__social {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	.dobro-footer__copyright {
		flex-direction: column;
		justify-content: center;
		gap: 8px;
		width: 100%;
		height: auto;
		min-height: 18px;
		margin-top: 24px;
		font-size: 12px;
		line-height: 18px;
		text-align: center;
		white-space: normal;
	}

	.dobro-store .dobro-footer button.dobro-footer__cookie-settings {
		height: auto;
		line-height: 18px;
	}
}
/* Конец: мобильная версия подвала */
