.mk-footer {
	position: relative;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 0;
	background: var(--wp--preset--color--base);
	box-shadow: 0 40px 100px rgba(28, 35, 64, 0.03);
}

.mk-footer__glow {
	position: absolute;
	top: -260px;
	right: -220px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(94, 110, 245, 0.1), rgba(94, 110, 245, 0));
}

.mk-footer__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 48px;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(72px, 8vw, 112px) clamp(20px, 4vw, 48px) clamp(48px, 6vw, 80px);
}

.mk-footer__top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 64px 96px;
}

.mk-footer__brand {
	display: flex;
	flex: 1.3 1 380px;
	flex-direction: column;
	gap: 30px;
	min-width: 0;
	max-width: 500px;
}

.mk-footer__logo {
	align-self: flex-start;
	width: auto;
	height: 34px;
}

.mk-footer__name {
	align-self: flex-start;
	color: var(--wp--preset--color--heading);
	font-size: 25px;
	font-weight: 600;
}

.mk-footer__description {
	max-width: 460px;
	margin: 0;
	color: var(--wp--preset--color--heading);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.4px;
	line-height: 1.5;
}

.mk-footer__note {
	color: #666ea8;
}

.mk-footer__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 6px;
}

.mk-footer__button.ml-btn--primary {
	padding: 13px 24px;
}

.mk-footer__button.ml-btn--outline {
	padding: 12px 22px;
}

.mk-footer__links {
	display: flex;
	flex: 2 1 560px;
	flex-wrap: wrap;
	gap: 40px 56px;
	min-width: 0;
	padding-top: 6px;
}

.mk-footer__column {
	display: flex;
	flex: 1 1 160px;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.mk-footer__heading {
	margin-bottom: 4px;
	color: var(--wp--preset--color--faint);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.8px;
	text-transform: uppercase;
}

.mk-footer__link,
.mk-footer__link:hover,
.mk-footer__legal-link,
.mk-footer__legal-link:hover {
	color: var(--wp--preset--color--body);
	text-decoration: none;
}

.mk-footer__link {
	font-size: 15px;
}

.mk-footer__legal-link {
	font-size: 13.5px;
}

button:is(.mk-footer__link, .mk-footer__legal-link) {
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	line-height: inherit;
	text-align: inherit;
	cursor: pointer;
}

.mk-footer__wordbox {
	position: relative;
	max-width: 1240px;
	height: clamp(90px, 15vw, 210px);
	margin: 0 auto;
	padding: 0 clamp(20px, 4vw, 48px);
	overflow: hidden;
}

.mk-footer__word {
	margin-top: clamp(10px, 2vw, 26px);
	padding-right: 0.06em;
	color: transparent;
	font-size: clamp(120px, 21vw, 300px);
	font-weight: 600;
	letter-spacing: -0.06em;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
}

.mk-footer__letter {
	display: inline-block;
	background: linear-gradient(180deg, rgba(35, 43, 134, calc(0.22 + 0.26 * var(--p, 0))) 0%, rgba(35, 43, 134, calc(0.06 + 0.12 * var(--p, 0))) 70%, rgba(35, 43, 134, 0) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	transform: translateY(calc(var(--p, 0) * -16px));
	will-change: transform;
}

.mk-footer__bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 30px clamp(20px, 4vw, 48px) 40px;
	border-top: 1px solid var(--wp--preset--color--divider);
	color: var(--wp--preset--color--subtle);
	font-size: 13px;
}

.mk-footer__legal-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	line-height: 1.5;
}

.mk-footer__notice {
	max-width: 760px;
}

.mk-footer__meta {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 22px;
}

.mk-footer__end {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-left: auto;
}

.mk-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
}

.mk-footer__social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mk-footer__social-link,
.mk-footer__social-link:hover {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}

.mk-footer__social-link img {
	display: block;
}

.mk-footer__top-link,
.mk-footer__top-link:hover {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mk-navy);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
	color: var(--wp--preset--color--base);
}

.mk-footer__top-link {
	overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {

	.mk-motion .mk-footer__top-link {
		transition: transform 0.25s ease, box-shadow 0.25s ease;
	}

	.mk-motion .mk-footer__top-link svg {
		animation: mk-top-nudge 2.6s ease-in-out infinite;
	}

	.mk-motion .mk-footer__top-link:is(:hover, :focus-visible) {
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 22px rgba(35, 43, 134, 0.38);
		transform: translateY(-3px);
	}

	.mk-motion .mk-footer__top-link:is(:hover, :focus-visible) svg {
		animation: mk-top-shoot 0.9s ease-in-out infinite;
	}

	.mk-motion .mk-footer__top-link:active {
		transform: translateY(-3px) scale(0.94);
	}
}

@keyframes mk-top-nudge {

	0%,
	76%,
	100% {
		transform: none;
	}

	86% {
		transform: translateY(-3px);
	}
}

@keyframes mk-top-shoot {

	0% {
		transform: none;
	}

	45% {
		transform: translateY(-28px);
	}

	45.01% {
		transform: translateY(28px);
	}

	100% {
		transform: none;
	}
}

@media (max-width: 900px) {

	.mk-footer {
		text-align: center;
	}

	.mk-footer :is(.mk-footer__logo, .mk-footer__name) {
		align-self: center;
	}

	.mk-footer nav {
		align-items: center;
	}

	.mk-footer p {
		margin-right: auto;
		margin-left: auto;
	}

	.mk-footer__top {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 48px;
	}

	.mk-footer__brand {
		flex: none;
		align-items: center;
		width: 100%;
		max-width: 560px;
	}

	.mk-footer__buttons {
		justify-content: center;
	}

	.mk-footer__links {
		flex: none;
		justify-content: center;
		width: 100%;
	}

	.mk-footer__wordbox {
		height: 18vw;
	}

	.mk-footer__word {
		font-size: 21vw;
	}

	.mk-footer__bar {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 18px;
		text-align: center;
	}

	.mk-footer__meta {
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 16px;
	}

	.mk-footer__end {
		margin-left: 0;
	}

	.mk-footer__legal,
	.mk-footer__social {
		justify-content: center;
	}

	.mk-footer__top-link {
		display: none;
	}
}

@media (min-width: 621px) and (max-width: 900px) {

	.mk-footer__column {
		flex: 1 1 0;
	}
}

@media (max-width: 620px) {

	.mk-footer__links {
		flex-direction: column;
		align-items: center;
	}

	.mk-footer__description {
		font-size: 13px;
		line-height: 1.6;
	}

	.mk-footer__word {
		margin-top: 6px;
	}

	.mk-footer__buttons {
		flex-direction: column;
		align-items: stretch;
		align-self: stretch;
		text-align: center;
	}

	.mk-footer__button.ml-btn {
		box-sizing: border-box;
		justify-content: center;
		width: 100%;
	}
}
