/* Site footer and its page-level return control. */
.starlab-footer {
	padding: 44px 0 0;
	background: #211327;
	border-top: 3px solid #a77ab7;
	color: #e9ddeb;
}

.starlab-footer__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(170px, .85fr) minmax(190px, .9fr);
	gap: clamp(28px, 5vw, 72px);
	padding-bottom: 38px;
}

.starlab-footer__brand,
.starlab-footer__navigation,
.starlab-footer__contacts {
	min-width: 0;
}

.starlab-footer__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 172px;
	min-height: 76px;
	padding: 9px 12px;
	background: #fff;
	border: 1px solid #d6bddc;
	border-radius: 12px;
}

.starlab-footer__logo img,
.starlab-footer__logo .custom-logo {
	display: block;
	width: 148px;
	max-width: 148px;
	height: 57px;
	max-height: 57px;
	object-fit: contain;
}

.starlab-footer__brand p {
	max-width: 360px;
	margin: 17px 0 19px;
	color: #d4c4d8;
	font-size: 15px;
	line-height: 1.55;
}

.starlab-footer__title {
	margin: 3px 0 17px;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
	line-height: 1.35;
	text-transform: uppercase;
}

.starlab-footer a { color: #f9f3fb; }

.starlab-footer .starlab-footer__cta {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid #cfafe0;
	border-radius: 10px;
	background: #8d4da2;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color .2s ease, border-color .2s ease;
}

.starlab-footer__cta:hover,
.starlab-footer__cta:focus-visible {
	border-color: #fff;
	background: #a961bd;
}

.starlab-footer__menu,
.starlab-footer__contacts ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.starlab-footer__menu li + li,
.starlab-footer__contacts li + li { margin-top: 9px; }

.starlab-footer__menu a,
.starlab-footer__contacts a,
.starlab-footer__contacts span {
	font-size: 14px;
	line-height: 1.45;
}

.starlab-footer__menu a:hover,
.starlab-footer__menu a:focus-visible,
.starlab-footer__contacts a:hover,
.starlab-footer__contacts a:focus-visible {
	color: #e0afea;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.starlab-footer__contacts span { color: #d4c4d8; }

.starlab-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 59px;
	margin: 0 auto;
	padding-top: 0;
	border-top: 1px solid rgba(220, 184, 229, .32);
	color: #cfbfd2;
	font-size: 13px;
}

.starlab-footer__bottom .starlab-language-links { gap: 6px; }

.starlab-footer__bottom .starlab-language-links a {
	padding: 2px 4px;
	color: #e9ddeb;
	font-size: 12px;
}

.starlab-footer__bottom .starlab-language-links a[aria-current] {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.starlab-back-to-top {
	position: fixed;
	right: 24px;
	bottom: 88px;
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid #b586c4;
	border-radius: 50%;
	background: #7e3b95;
	box-shadow: 0 5px 16px rgba(33, 19, 39, .28);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.starlab-back-to-top[hidden] { display: none; }

.starlab-back-to-top:hover,
.starlab-back-to-top:focus-visible {
	background: #9a51b1;
	transform: translateY(-2px);
}

.starlab-back-to-top:focus-visible,
.starlab-footer a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (min-width: 801px) {
	html:lang(uz) .starlab-footer__menu {
		columns: 2;
		column-gap: 28px;
	}

	html:lang(uz) .starlab-footer__menu li {
		break-inside: avoid;
	}
}

@media (max-width: 800px) {
	.starlab-footer { padding-top: 34px; }
	.starlab-footer__inner { grid-template-columns: 1fr; gap: 29px; padding-bottom: 31px; }
	.starlab-footer__bottom { min-height: 94px; padding-bottom: 44px; }
	.starlab-footer__menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
	.starlab-footer__menu li + li { margin-top: 0; }
}

@media (max-width: 359px) {
	.starlab-footer__logo { min-width: 0; width: 100%; }
	.starlab-footer__logo img,
	.starlab-footer__logo .custom-logo { width: 148px; max-width: 100%; height: auto; }
	.starlab-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 0 50px; }
	.starlab-back-to-top { right: 16px; bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
	.starlab-footer__cta,
	.starlab-back-to-top { transition: none; }
}
