:root {
	--km-footer-navy: #161f2c;
	--km-footer-orange: #ff9300;
	--km-footer-orange-deep: #9f4c00;
	--km-footer-paper: #f4f2ed;
	--km-footer-muted: #5b6674;
	--km-footer-line: rgba(22, 31, 44, 0.14);
}

.site-footer {
	position: relative;
	background: #ffffff !important;
	border: 0 !important;
	color: var(--km-footer-muted) !important;
}

.site-footer::before {
	display: block;
	height: 4px;
	background: linear-gradient(90deg, var(--km-footer-orange) 0 112px, var(--km-footer-navy) 112px 100%);
	content: "";
}

.site-footer .site-primary-footer-wrap,
.site-footer .site-below-footer-wrap {
	display: none !important;
}

.km-footer {
	background: #ffffff;
}

.km-footer__main,
.km-footer__bottom {
	width: min(1240px, calc(100% - 72px));
	margin-inline: auto;
}

.km-footer__main {
	display: grid;
	grid-template-columns: minmax(340px, 1.55fr) minmax(190px, 0.72fr) minmax(170px, 0.62fr);
	gap: clamp(28px, 3.5vw, 52px);
	align-items: start;
	padding-block: clamp(40px, 5vw, 56px);
}

.km-footer__brand-head {
	display: flex;
	align-items: flex-start;
	gap: 28px;
	margin-bottom: 22px;
}

.km-footer__profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 112px;
	gap: 10px;
	text-align: center;
}

.km-footer__brand-head .km-footer__brand-link {
	justify-content: center;
	width: 112px;
	min-height: 80px;
	margin: 0;
}

.km-footer__portrait-frame {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--km-footer-paper);
}

.km-footer__portrait-frame .km-footer__portrait {
	display: block;
	width: 176px;
	max-width: none;
	height: 176px;
	object-fit: cover;
	transform: translate(-55px, -9px);
}

.km-footer__identity {
	margin: 0;
	line-height: 1.5;
}

.km-footer__identity strong,
.km-footer__identity span {
	display: block;
}

.km-footer__identity strong {
	color: var(--km-footer-navy) !important;
	font-size: 14px;
	font-weight: 700;
}

.km-footer__identity span {
	margin-top: 2px;
	color: var(--km-footer-muted) !important;
	font-size: 12px;
}

.km-footer__brand-link {
	display: inline-flex;
	align-items: center;
	margin-bottom: 16px;
}

.km-footer__logo {
	display: block;
	width: 108px;
	height: auto;
	filter: none !important;
	opacity: 0.88;
}

.km-footer__statement {
	max-width: 460px;
	margin: 0;
	color: #3f4a58 !important;
	font-size: 16px;
	line-height: 1.5;
}

.km-footer__region {
	margin: 12px 0 0;
	color: var(--km-footer-navy) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.km-footer__contact {
	display: flex;
	gap: 8px 18px;
	align-items: center;
	flex-wrap: wrap;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.km-footer__contact a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
}

.km-footer__group summary {
	display: flex;
	min-height: 44px;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0 0 14px;
	color: var(--km-footer-navy) !important;
	cursor: pointer;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.3;
	letter-spacing: -0.01em;
	list-style: none;
}

.km-footer__group summary::-webkit-details-marker {
	display: none;
}

.km-footer__group summary:focus-visible {
	border-radius: 4px;
	outline: 3px solid var(--km-footer-navy);
	outline-offset: 4px;
}

.km-footer__group summary > span:last-child {
	display: none;
}

.km-footer__nav ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.km-footer__nav li + li {
	margin-top: 7px;
}

.km-footer a {
	color: var(--km-footer-navy) !important;
	text-decoration: none !important;
	text-decoration-color: transparent !important;
	transition: color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.km-footer__nav a {
	display: inline-block;
	min-height: 30px;
	font-size: 14px;
	line-height: 1.45;
}

.km-footer__quiet {
	margin-top: 18px !important;
	padding-top: 14px;
	border-top: 1px solid var(--km-footer-line);
}

.km-footer__quiet a {
	color: #66717f !important;
}

.km-footer__nav a:hover,
.km-footer__nav a:focus-visible,
.km-footer__bottom a:hover,
.km-footer__bottom a:focus-visible {
	color: var(--km-footer-orange-deep) !important;
}

.km-footer a:focus-visible {
	border-radius: 4px;
	outline: 3px solid var(--km-footer-navy);
	outline-offset: 4px;
}

.km-footer__bottom {
	display: flex;
	gap: 24px;
	align-items: center;
	justify-content: space-between;
	min-height: 60px;
	padding-block: 10px;
	border-top: 1px solid var(--km-footer-line);
}

.km-footer__bottom p {
	margin: 0;
	color: #6b7582 !important;
	font-size: 12px;
}

.km-footer__bottom nav {
	display: flex;
	gap: 22px;
	align-items: center;
	flex-wrap: wrap;
}

.km-footer__bottom a {
	font-size: 12px;
	font-weight: 600;
}

@media (max-width: 980px) {
	.km-footer__main {
		grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.58fr) minmax(170px, 0.54fr);
		gap: 32px 30px;
	}
}

@media (max-width: 767px) {
	.site-footer::before {
		height: 3px;
		background: linear-gradient(90deg, var(--km-footer-orange) 0 72px, var(--km-footer-navy) 72px 100%);
	}

	.km-footer__main,
	.km-footer__bottom {
		width: calc(100% - 40px);
	}

	.km-footer__main {
		grid-template-columns: 1fr;
		gap: 0;
		padding-block: 28px 20px;
	}

	.km-footer__brand {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.km-footer__brand-link {
		margin-bottom: 10px;
	}

	.km-footer__statement {
		font-size: 15px;
		line-height: 1.5;
	}

	.km-footer__contact {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
		margin-top: 10px;
	}

	.km-footer__region {
		margin-top: 8px;
	}

	.km-footer__group {
		border-top: 1px solid var(--km-footer-line);
	}

	.km-footer__group:last-of-type {
		border-bottom: 1px solid var(--km-footer-line);
	}

	.km-footer__group summary {
		min-height: 50px;
		align-items: center;
		margin: 0;
		cursor: pointer;
	}

	.km-footer__group summary > span:last-child {
		display: inline-block;
		font-size: 22px;
		font-weight: 400;
		line-height: 1;
		transition: transform 180ms ease;
	}

	.km-footer__group[open] summary > span:last-child {
		transform: rotate(45deg);
	}

	.km-footer__nav {
		padding: 0 0 10px;
	}

	.km-footer__nav li + li {
		margin-top: 0;
	}

	.km-footer__nav a {
		display: flex;
		min-height: 44px;
		align-items: center;
		width: 100%;
	}

	.km-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		min-height: 0;
		gap: 2px;
		padding-block: 10px 16px;
	}

	.km-footer__bottom nav {
		gap: 0 16px;
	}

	.km-footer__bottom a {
		display: inline-flex;
		min-height: 44px;
		align-items: center;
	}
}

@media (max-width: 520px) {
	.km-footer__main,
	.km-footer__bottom {
		width: calc(100% - 28px);
	}

	.km-footer__main {
		grid-template-columns: 1fr;
	}

	.km-footer__services,
	.km-footer__company {
		grid-row: auto;
	}
}
