/* Footer layout. Content and design values are editable in the Customizer. */

.sibt-site-footer {
	padding-top: var(--sibt-footer-padding, 48px);
	background: linear-gradient(180deg, var(--sibt-footer-bg-top, #1e1e69) 0%, var(--sibt-footer-bg-bottom, #141c45) 100%);
	color: var(--sibt-footer-text-color, #ffffff);
	font-size: var(--sibt-footer-font-size, 14px);
}

.sibt-site-footer :where(a, p, h2) {
	color: inherit;
}

.sibt-site-footer__inner {
	display: grid;
	grid-template-columns: minmax(15rem, 1.35fr) minmax(9rem, 0.75fr) minmax(9rem, 0.75fr) minmax(14rem, 1fr);
	gap: clamp(2rem, 4vw, 4.5rem);
	padding-bottom: var(--sibt-footer-padding, 48px);
}

.sibt-footer-brand__logo {
	display: inline-flex;
	max-width: var(--sibt-footer-logo-width, 210px);
	align-items: center;
}

.sibt-footer-brand__logo img {
	width: auto;
	max-width: 100%;
	max-height: 4.5rem;
	object-fit: contain;
}

.sibt-footer-brand__name {
	font-size: 1.75rem;
	font-weight: 700;
}

.sibt-footer-brand__legal {
	max-width: 28rem;
	margin: 1.25rem 0 0;
	color: var(--sibt-footer-muted-color, #c7c9dc);
	font-size: var(--sibt-footer-legal-font-size, 14px);
	font-weight: var(--sibt-footer-legal-font-weight, 400);
	line-height: 1.65;
}

.sibt-footer-heading {
	margin: 0 0 1rem;
	color: var(--sibt-footer-text-color, #ffffff);
	font-size: var(--sibt-footer-heading-size, 17px);
	font-weight: var(--sibt-footer-heading-weight, 600);
	letter-spacing: 0;
	line-height: 1.3;
}

.sibt-footer-nav__list {
	display: grid;
	gap: 0.55rem;
	padding: 0;
	margin: 0;
	list-style: none;
}

.sibt-footer-nav__list .menu-item {
	margin: 0;
}

.sibt-footer-nav__list a,
.sibt-footer-contacts > a:not(.sibt-button),
.sibt-site-footer__bottom a {
	color: var(--sibt-footer-muted-color, #c7c9dc);
	font-weight: var(--sibt-footer-link-weight, 400);
	transition: color var(--sibt-transition);
}

.sibt-footer-nav__list a:hover,
.sibt-footer-nav__list a:focus-visible,
.sibt-footer-contacts > a:not(.sibt-button):hover,
.sibt-footer-contacts > a:not(.sibt-button):focus-visible,
.sibt-site-footer__bottom a:hover,
.sibt-site-footer__bottom a:focus-visible {
	color: var(--sibt-footer-hover-color, #facc00);
}

.sibt-footer-contacts {
	display: grid;
	align-content: start;
	gap: 0.75rem;
}

.sibt-footer-contacts > a:not(.sibt-button),
.sibt-footer-contacts__address {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
}

.sibt-footer-contacts .sibt-icon {
	width: var(--sibt-footer-icon-size, 18px);
	height: var(--sibt-footer-icon-size, 18px);
	margin-top: 0.05rem;
	color: var(--sibt-footer-icon-color, #facc00);
	stroke-width: var(--sibt-footer-icon-stroke, 1.8);
}

.sibt-footer-contacts__address {
	color: var(--sibt-footer-muted-color, #c7c9dc);
}

.sibt-footer-contacts__button {
	justify-self: start;
	margin-top: 0.5rem;
	border: var(--sibt-footer-button-border-width, 1px) solid var(--sibt-footer-button-border-color, #facc00);
	border-radius: var(--sibt-footer-button-radius, 10px);
	background: transparent;
	box-shadow: none;
	color: var(--sibt-footer-button-text-color, #facc00);
	font-size: var(--sibt-footer-button-font-size, 13px);
	font-weight: var(--sibt-footer-button-font-weight, 700);
	transition:
		border-color var(--sibt-footer-button-transition, 300ms) ease,
		color var(--sibt-footer-button-transition, 300ms) ease;
}

.sibt-footer-contacts__button:hover,
.sibt-footer-contacts__button:focus-visible {
	border-color: var(--sibt-footer-button-hover-border-color, #ffffff);
	background: transparent;
	box-shadow: none;
	color: var(--sibt-footer-button-text-color, #facc00);
	transform: none;
}

.sibt-site-footer__bottom {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	min-height: 4.5rem;
	padding-block: 1rem;
	border-top: 1px solid var(--sibt-footer-border-color, #3d4377);
	color: var(--sibt-footer-muted-color, #c7c9dc);
	font-size: max(0.75rem, calc(var(--sibt-footer-font-size, 14px) - 1px));
}

.sibt-site-footer__copyright {
	margin: 0;
}

.sibt-site-footer__developer {
	display: inline-flex;
	width: var(--sibt-footer-developer-logo-width, 100px);
	max-width: 100%;
	align-items: center;
	justify-content: flex-end;
}

.sibt-site-footer__developer img {
	width: auto;
	max-width: 100%;
	max-height: 1.65rem;
	object-fit: contain;
}

@media (max-width: 63.9375rem) {
	.sibt-site-footer__inner {
		grid-template-columns: minmax(14rem, 1.3fr) repeat(2, minmax(8rem, 0.7fr));
	}

	.sibt-footer-contacts {
		grid-column: 1 / -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sibt-footer-contacts .sibt-footer-heading,
	.sibt-footer-contacts__button {
		grid-column: 1 / -1;
	}
}

@media (max-width: 47.9375rem) {
	.sibt-site-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.25rem 1.5rem;
	}

	.sibt-footer-brand,
	.sibt-footer-contacts {
		grid-column: 1 / -1;
	}

	.sibt-site-footer__bottom {
		grid-template-columns: 1fr auto;
	}

	.sibt-site-footer__copyright {
		grid-column: 1 / -1;
	}
}

@media (max-width: 35rem) {
	.sibt-site-footer__inner,
	.sibt-footer-contacts,
	.sibt-site-footer__bottom {
		grid-template-columns: 1fr;
	}

	.sibt-footer-brand,
	.sibt-footer-contacts,
	.sibt-footer-contacts .sibt-footer-heading,
	.sibt-footer-contacts__button,
	.sibt-site-footer__copyright {
		grid-column: auto;
	}

	.sibt-site-footer__developer {
		justify-content: flex-start;
	}
}
