/* =========================================================
   HOTDECOR — FOOTER
   Чистая самостоятельная версия
   ========================================================= */

.hd-footer {
	--hd-footer-bg: #17181d;
	--hd-footer-bg-deep: #121317;
	--hd-footer-panel: #24262c;
	--hd-footer-text: #f5f5f6;
	--hd-footer-muted: #b4b6bd;
	--hd-footer-line: rgba(255, 255, 255, 0.11);
	--hd-footer-accent: #e6004f;
	--hd-footer-accent-dark: #bd0041;

	position: relative;
	width: 100%;
	margin: 0;
	color: var(--hd-footer-text);
	background: var(--hd-footer-bg);
}

.hd-footer,
.hd-footer *,
.hd-footer *::before,
.hd-footer *::after {
	box-sizing: border-box;
}

.hd-footer a {
	text-decoration: none;
}

.hd-footer__visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* =========================================================
   КОНСУЛЬТАЦИОННЫЙ БЛОК
   ========================================================= */

.hd-footer .hd-footer__cta {
	position: static !important;
	inset: auto !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 30px 0 !important;
	color: #ffffff !important;
	background:
		radial-gradient(
			circle at 85% 15%,
			rgba(255, 255, 255, 0.16),
			transparent 34%
		),
		linear-gradient(
			135deg,
			var(--hd-footer-accent),
			var(--hd-footer-accent-dark)
		) !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
}

.hd-footer__cta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	min-width: 0;
}

.hd-footer__cta-copy {
	flex: 1 1 520px;
	min-width: 0;
}

.hd-footer__cta-title {
	margin: 0 0 7px;
	color: #ffffff;
	font-size: clamp(23px, 2.1vw, 32px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.hd-footer__cta-text {
	max-width: 650px;
	margin: 0;
	color: rgba(255, 255, 255, 0.87);
	font-size: 15px;
	line-height: 1.5;
}

.hd-footer__cta-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
	min-width: 0;
}

.hd-footer .hd-footer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	max-width: 100%;
	margin: 0;
	padding: 11px 18px;
	border: 1px solid rgba(255, 255, 255, 0.48);
	border-radius: 11px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
	cursor: pointer;
	appearance: none;
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease;
}

.hd-footer .hd-footer__button--primary {
	color: #1d1e22;
	background: #ffffff;
	border-color: #ffffff;
}

.hd-footer .hd-footer__button--secondary {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.hd-footer .hd-footer__button:hover,
.hd-footer .hd-footer__button:focus-visible {
	transform: translateY(-1px);
}

.hd-footer .hd-footer__button--primary:hover,
.hd-footer .hd-footer__button--primary:focus-visible {
	color: var(--hd-footer-accent-dark);
	background: #ffffff;
}

.hd-footer .hd-footer__button--secondary:hover,
.hd-footer .hd-footer__button--secondary:focus-visible {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.17);
	border-color: rgba(255, 255, 255, 0.72);
}

.hd-footer a:focus-visible,
.hd-footer button:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

/* =========================================================
   ОСНОВНАЯ ЧАСТЬ
   ========================================================= */

.hd-footer__main {
	padding: 54px 0 48px;
	background: var(--hd-footer-bg);
}

.hd-footer__grid {
	display: grid;
	grid-template-columns:
		minmax(280px, 1.35fr)
		repeat(3, minmax(150px, 0.75fr));
	gap: clamp(30px, 4vw, 66px);
	align-items: start;
	min-width: 0;
}

.hd-footer__brand,
.hd-footer__nav {
	min-width: 0;
}

.hd-footer__logo {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	max-width: 190px;
	margin: 0 0 20px;
	color: #ffffff;
}

.hd-footer__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 56px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.hd-footer__logo p,
.hd-footer__logo span {
	margin: 0;
	color: #ffffff;
}

.hd-footer__description {
	max-width: 360px;
	margin: 0 0 22px;
	color: var(--hd-footer-muted);
	font-size: 14px;
	line-height: 1.55;
}

.hd-footer__contacts {
	display: grid;
	gap: 12px;
	margin: 0;
	color: var(--hd-footer-text);
	font-style: normal;
}

.hd-footer__contact {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	min-width: 0;
	color: var(--hd-footer-muted);
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

.hd-footer__contact--link:hover,
.hd-footer__contact--link:focus-visible {
	color: #ffffff;
}

.hd-footer__contact-icon {
	padding-top: 3px;
	color: #ff4c88;
	text-align: center;
}

.hd-footer__route {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-top: 18px;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	transition: color 0.2s ease;
}

.hd-footer__route:hover,
.hd-footer__route:focus-visible {
	color: #ff75a3;
}

/* =========================================================
   НАВИГАЦИЯ
   ========================================================= */

.hd-footer__heading {
	margin: 5px 0 19px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.hd-footer__menu,
.hd-footer__menu ul,
.hd-footer__menu li {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.hd-footer__menu ul {
	display: grid;
	gap: 3px;
	list-style: none;
}

.hd-footer__menu li {
	display: block;
	list-style: none;
}

.hd-footer__menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	max-width: 100%;
	padding: 7px 0;
	color: var(--hd-footer-muted) !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	overflow-wrap: anywhere;
	transition:
		color 0.2s ease,
		transform 0.2s ease;
}

.hd-footer__menu a:hover,
.hd-footer__menu a:focus-visible,
.hd-footer__menu li.active > a,
.hd-footer__menu li.selected > a,
.hd-footer__menu li.root-item-selected > a {
	color: #ffffff !important;
	transform: translateX(3px);
}

/* =========================================================
   НИЖНЯЯ ЧАСТЬ
   ========================================================= */

.hd-footer__bottom {
	background: var(--hd-footer-bg-deep);
	border-top: 1px solid var(--hd-footer-line);
}

.hd-footer__bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-width: 0;
	padding: 21px 0;
}

.hd-footer__legal {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	flex-wrap: wrap;
	gap: 7px 18px;
	min-width: 0;
	color: #8f929a;
	font-size: 12px;
	line-height: 1.5;
}

.hd-footer__legal-name {
	color: #b7b9bf;
	font-weight: 700;
}

.hd-footer__legacy-legal {
	min-width: 0;
}

.hd-footer__legacy-legal,
.hd-footer__legacy-legal * {
	color: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
}

.hd-footer__legacy-legal p {
	margin: 0;
}

.hd-footer__bottom-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	gap: 12px;
	min-width: 0;
}

/* =========================================================
   СОЦИАЛЬНЫЕ СЕТИ
   ========================================================= */

.hd-footer__social {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
}

/*
 * Обнуляем старую Bootstrap-сетку внутри soc_icons.php.
 * Ссылки и адреса из файла сохраняются.
 */

.hd-footer__social-existing {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.hd-footer__social-existing > .row,
.hd-footer__social-existing .row {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hd-footer__social-existing [class*="col"] {
	display: flex !important;
	align-items: center !important;
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hd-footer__social-existing br {
	display: none !important;
}

.hd-footer__social-existing a,
.hd-footer__social-link {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 44px !important;
	width: 44px !important;
	min-width: 44px !important;
	max-width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.055) !important;
	border: 1px solid rgba(255, 255, 255, 0.14) !important;
	border-radius: 11px !important;
	box-shadow: none !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-align: center;
	text-decoration: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	transition:
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease !important;
}

.hd-footer__social-existing a:hover,
.hd-footer__social-existing a:focus-visible,
.hd-footer__social-link:hover,
.hd-footer__social-link:focus-visible {
	color: #ffffff !important;
	background: rgba(230, 0, 79, 0.22) !important;
	border-color: rgba(230, 0, 79, 0.8) !important;
	transform: translateY(-2px);
}

.hd-footer__social-existing a img {
	display: block !important;
	width: 22px !important;
	min-width: 22px !important;
	max-width: 22px !important;
	height: 22px !important;
	min-height: 22px !important;
	max-height: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	object-fit: contain !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.hd-footer__social-existing a .fa,
.hd-footer__social-existing a i {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #ffffff !important;
	font-size: 20px !important;
	line-height: 1 !important;
}

.hd-footer__social-link--max:hover,
.hd-footer__social-link--max:focus-visible {
	background: #6757ff !important;
	border-color: #6757ff !important;
}

.hd-footer__max-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
}

/* =========================================================
   КНОПКА «НАВЕРХ»
   ========================================================= */

.hd-footer__back-to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 8px;
	min-height: 44px;
	margin: 0;
	padding: 8px 13px;
	color: #bfc1c7;
	background: transparent;
	border: 1px solid var(--hd-footer-line);
	border-radius: 10px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	transition:
		color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease;
}

.hd-footer__back-to-top:hover,
.hd-footer__back-to-top:focus-visible {
	color: #ffffff;
	background: var(--hd-footer-panel);
	border-color: rgba(255, 255, 255, 0.22);
}

/* =========================================================
   СРЕДНИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 1199px) {
	.hd-footer__grid {
		grid-template-columns:
			minmax(260px, 1.15fr)
			repeat(3, minmax(125px, 0.75fr));
		gap: 30px;
	}
}

/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1023px) {
	.hd-footer__cta-row {
		align-items: flex-start;
	}

	.hd-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 34px 40px;
	}

	.hd-footer__brand {
		grid-column: 1 / -1;
	}

	.hd-footer__nav:last-child {
		grid-column: 1 / -1;
	}

	.hd-footer__nav:last-child .hd-footer__menu ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 30px;
	}
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================= */

@media (max-width: 767px) {
	.hd-footer .hd-footer__cta {
		padding: 25px 0 !important;
	}

	.hd-footer__cta-row {
		display: grid;
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.hd-footer__cta-copy {
		min-width: 0;
	}

	.hd-footer__cta-title {
		margin-bottom: 6px;
		font-size: clamp(22px, 6.2vw, 27px);
		line-height: 1.18;
	}

	.hd-footer__cta-text {
		font-size: 14px;
		line-height: 1.5;
	}

	.hd-footer__cta-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
		width: 100%;
	}

	.hd-footer .hd-footer__button {
		width: 100%;
		min-width: 0;
		min-height: 48px;
		padding: 10px;
		font-size: 12px;
	}

	.hd-footer__main {
		padding: 32px 0 28px;
	}

	.hd-footer__grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0;
	}

	.hd-footer__brand {
		grid-column: 1;
		margin: 0;
		padding: 0 0 27px;
		border-bottom: 1px solid var(--hd-footer-line);
	}

	.hd-footer__logo {
		margin-bottom: 16px;
	}

	.hd-footer__description {
		margin-bottom: 18px;
	}

	.hd-footer__contacts {
		gap: 11px;
	}

	.hd-footer__contact {
		font-size: 13px;
	}

	.hd-footer__route {
		margin-top: 14px;
	}

	.hd-footer__nav,
	.hd-footer__nav:last-child {
		grid-column: 1;
		padding: 20px 0;
		border-bottom: 1px solid var(--hd-footer-line);
	}

	.hd-footer__nav:last-child {
		border-bottom: 0;
	}

	.hd-footer__heading {
		margin: 0 0 8px;
		font-size: 15px;
	}

	.hd-footer__menu ul,
	.hd-footer__nav:last-child .hd-footer__menu ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 20px;
		row-gap: 0;
	}

	.hd-footer__menu a {
		display: flex;
		min-height: 40px;
		padding: 7px 0;
		font-size: 13px;
	}

	.hd-footer__bottom-row {
		display: grid;
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 21px 0 26px;
	}

	.hd-footer__legal {
		display: grid;
		grid-template-columns: 1fr;
		gap: 4px;
		width: 100%;
		font-size: 11px;
		line-height: 1.55;
	}

	.hd-footer__bottom-actions {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: nowrap;
		gap: 12px;
		width: 100%;
		margin: 0;
	}

	.hd-footer__social {
		display: flex;
		align-items: center;
		flex: 1 1 auto;
		flex-wrap: nowrap;
		gap: 8px;
		min-width: 0;
	}

	.hd-footer__social-existing,
	.hd-footer__social-existing > .row,
	.hd-footer__social-existing .row {
		flex-wrap: nowrap !important;
	}

	.hd-footer__social-existing a,
	.hd-footer__social-link {
		flex-basis: 42px !important;
		width: 42px !important;
		min-width: 42px !important;
		max-width: 42px !important;
		height: 42px !important;
		min-height: 42px !important;
		max-height: 42px !important;
		border-radius: 10px !important;
	}

	.hd-footer__social-existing a img {
		width: 21px !important;
		min-width: 21px !important;
		max-width: 21px !important;
		height: 21px !important;
		min-height: 21px !important;
		max-height: 21px !important;
	}

	.hd-footer__back-to-top {
		min-height: 42px;
		padding: 8px 12px;
	}
}

/* =========================================================
   УЗКИЕ ТЕЛЕФОНЫ
   ========================================================= */

@media (max-width: 420px) {
	.hd-footer .hd-footer__cta {
		padding: 23px 0 !important;
	}

	.hd-footer__cta-actions {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.hd-footer .hd-footer__button {
		min-height: 46px;
		font-size: 12px;
	}

	.hd-footer__main {
		padding-top: 28px;
	}

	.hd-footer__menu ul,
	.hd-footer__nav:last-child .hd-footer__menu ul {
		column-gap: 16px;
	}

	.hd-footer__menu a {
		font-size: 12px;
	}

	.hd-footer__social {
		gap: 7px;
	}

	.hd-footer__social-existing,
	.hd-footer__social-existing > .row,
	.hd-footer__social-existing .row {
		gap: 7px !important;
	}

	.hd-footer__social-existing a,
	.hd-footer__social-link {
		flex-basis: 40px !important;
		width: 40px !important;
		min-width: 40px !important;
		max-width: 40px !important;
		height: 40px !important;
		min-height: 40px !important;
		max-height: 40px !important;
	}

	.hd-footer__back-to-top {
		min-height: 40px;
		padding: 7px 10px;
		font-size: 11px;
	}
}

/* =========================================================
   ОЧЕНЬ УЗКИЕ ЭКРАНЫ
   ========================================================= */

@media (max-width: 350px) {
	.hd-footer__menu ul,
	.hd-footer__nav:last-child .hd-footer__menu ul {
		grid-template-columns: 1fr;
	}

	.hd-footer__bottom-actions {
		align-items: flex-start;
		flex-direction: column;
	}

	.hd-footer__back-to-top {
		align-self: flex-start;
	}
}

/* =========================================================
   УМЕНЬШЕНИЕ АНИМАЦИИ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
	.hd-footer *,
	.hd-footer *::before,
	.hd-footer *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.hd-footer .hd-footer__button:hover,
	.hd-footer .hd-footer__button:focus-visible,
	.hd-footer__menu a:hover,
	.hd-footer__menu a:focus-visible,
	.hd-footer__social-existing a:hover,
	.hd-footer__social-existing a:focus-visible,
	.hd-footer__social-link:hover,
	.hd-footer__social-link:focus-visible {
		transform: none;
	}
}