/* Футер сайта */

.site-footer.footer_wr {
	margin: 0 auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	background: #f3f1f5 !important;
	box-shadow: none !important;
	border-top: 1px solid #e4dfe8;
}

/* Тот же горизонтальный контейнер, что у .site-topbar__inner / .top_block */
.site-footer__inner.footer_inner {
	max-width: 1060px;
	width: 100%;
	margin: 0 auto;
	height: auto !important;
	padding: 36px 20px 28px;
	box-sizing: border-box;
}

/* Сброс legacy */
.site-footer .left_col,
.site-footer .center_col,
.site-footer .right_col,
.site-footer .phone_feedback,
.site-footer .payment,
.site-footer .riasoft_by_info {
	float: none !important;
	width: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
}

/* 5 колонок: реквизиты | каталог | статьи | помощь | контакты */
.site-footer__main {
	display: grid;
	grid-template-columns:
		minmax(0, 1.15fr)
		minmax(0, 0.72fr)
		minmax(0, 0.88fr)
		minmax(0, 0.88fr)
		minmax(0, 1fr);
	gap: clamp(14px, 2.2vw, 22px);
	align-items: start;
	width: 100%;
}

.site-footer .site-footer__nav.center_col {
	display: contents !important;
}

.site-footer__brand {
	grid-column: 1;
	justify-self: start;
}

.site-footer__nav-col--catalog {
	grid-column: 2;
}

.site-footer__nav-col--articles {
	grid-column: 3;
}

.site-footer__nav-col--help {
	grid-column: 4;
}

.site-footer__aside {
	grid-column: 5;
	justify-self: end;
	max-width: 100%;
}

/* Реквизиты */
.site-footer__legal {
	font-size: 12px;
	line-height: 1.55;
	color: #635f68;
}

.site-footer__legal-text {
	margin-top: 8px;
}

.site-footer__legal a {
	color: #603669;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.site-footer__legal a:hover {
	color: #4a2854;
}

/* Навигация — каждый раздел в своей колонке */
.site-footer__nav-col {
	min-width: 0;
}

.site-footer__nav-title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #212121;
}

.site-footer__nav-title a {
	color: inherit;
	text-decoration: none;
}

.site-footer__nav-title a:hover {
	color: #603669;
}

.site-footer .footer_inner ul.site-footer__nav-list {
	display: block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.site-footer__nav-list li {
	margin: 0 0 7px;
	padding: 0;
	padding-left: 0 !important;
	line-height: 1.35;
}

.site-footer__nav-list a {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: #635f68;
	text-decoration: none;
	transition: color 0.2s;
	word-break: break-word;
}

.site-footer__nav-list a:hover {
	color: #603669;
}

/* Контакты */
.site-footer__aside {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.site-footer__phones {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer .site-topbar__phone {
	font-size: 14px;
}

.site-footer__email {
	margin-top: 2px;
}

.site-footer__hours-title {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #212121;
}

.site-footer__hours-list {
	font-size: 12px;
	line-height: 1.5;
	color: #635f68;
}

.site-footer__hours-row {
	margin: 0 0 4px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
}

.site-footer__hours-day {
	font-weight: 600;
	color: #212121;
}

.site-footer__hours-time {
	color: #635f68;
}

.site-footer__rating iframe {
	display: block;
	max-width: 100%;
	border: none;
}

/* Низ футера */
.site-footer__bottom {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid #e4dfe8;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	text-align: left;
	width: 100%;
}

.site-footer__payments {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 16px;
}

.site-footer__payments img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	opacity: 0.92;
	transition: opacity 0.2s;
}

.site-footer__payments a:hover img {
	opacity: 1;
}

.site-footer__credits {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
}

.site-footer__credits .riasoft_by-footer {
	position: static !important;
	top: auto !important;
	display: inline;
	color: #635f68 !important;
	font-size: 12px;
	text-decoration: none;
}

.site-footer__credits .riasoft_by-footer:hover {
	color: #603669 !important;
	text-decoration: underline;
}

.header + .content {
	padding-bottom: 48px !important;
}

@media (max-width: 960px) {
	.site-footer__main {
		grid-template-columns: 1fr 1fr;
		gap: 24px 20px;
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}

	.site-footer .site-footer__nav.center_col {
		display: grid !important;
		grid-column: 1 / -1;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px 16px;
	}

	.site-footer__nav-col--catalog,
	.site-footer__nav-col--articles,
	.site-footer__nav-col--help {
		grid-column: auto;
	}

	.site-footer__aside {
		grid-column: 1 / -1;
		justify-self: stretch;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 20px 32px;
	}

	.site-footer__phones,
	.site-footer__hours,
	.site-footer__rating {
		flex: 1 1 180px;
		min-width: 160px;
	}
}

@media (max-width: 600px) {
	.site-footer__inner {
		padding: 28px 14px 24px;
	}

	.site-footer__main {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.site-footer__nav {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px 10px;
	}

	.site-footer__nav-title {
		font-size: 11px;
		margin-bottom: 8px;
	}

	.site-footer__nav-list a {
		font-size: 11px;
	}

	.site-footer__aside {
		flex-direction: column;
		gap: 16px;
	}

	.site-footer__bottom {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.site-footer__payments {
		justify-content: center;
	}
}
