/* BAAK public footer — scoped component styles */
.bf-footer {
	--bf-bg: #17134f;
	--bf-bg-deep: #100d42;
	--bf-surface: #292466;
	--bf-border: #35306d;
	--bf-text: #ffffff;
	--bf-muted: #cbc8e4;
	--bf-subtle: #aaa7c8;
	--bf-red: #e31e24;
	background: var(--bf-bg);
	color: var(--bf-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	position: relative;
	border-top: 5px solid var(--bf-red);
}

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

.bf-footer a,
.bf-footer button,
.bf-footer summary {
	-webkit-tap-highlight-color: transparent;
}

.bf-footer a {
	text-decoration: none;
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.bf-footer a:focus-visible,
.bf-footer summary:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 4px;
}

.bf-container {
	width: min(1200px, calc(100% - 48px));
	margin-inline: auto;
}

.bf-main {
	padding: 64px 0 58px;
}

.bf-grid {
	display: grid;
	grid-template-columns: minmax(330px, .9fr) minmax(600px, 1.55fr);
	gap: clamp(54px, 6vw, 86px);
	align-items: start;
}

.bf-brand {
	min-width: 0;
}

.bf-logo {
	display: inline-block;
	max-width: 100%;
	min-height: 48px;
}

.bf-logo img {
	display: block;
	width: min(310px, 100%);
	height: auto;
}

.bf-contact {
	display: grid;
	gap: 18px;
	margin: 34px 0 0;
	font-style: normal;
}

.bf-contact__item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	min-height: 44px;
	color: var(--bf-muted);
}

a.bf-contact__item:hover {
	color: var(--bf-text);
}

.bf-contact__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--bf-surface);
	color: #d7d4ef;
}

.bf-contact__icon svg {
	width: 23px;
	height: 23px;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.bf-contact__icon circle,
.bf-contact__icon rect,
.bf-contact__icon path[d^="m4"] {
	fill: none;
}

.bf-contact__label,
.bf-contact__value {
	display: block;
}

.bf-contact__label {
	margin-bottom: 2px;
	color: var(--bf-text);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .075em;
	text-transform: uppercase;
}

.bf-contact__value {
	font-size: 15px;
}

.bf-map-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.bf-map-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 7px 16px;
	border: 1px solid #514b89;
	border-radius: 999px;
	color: var(--bf-text);
	font-size: 13px;
	font-weight: 700;
}

.bf-map-links a:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: #241f62;
}

.bf-nav {
	display: grid;
	grid-template-columns: 1.12fr 1fr 1fr;
	gap: clamp(30px, 3.5vw, 54px);
	padding-left: clamp(34px, 4vw, 58px);
	border-left: 1px solid var(--bf-border);
}

.bf-group {
	min-width: 0;
}

.bf-group > summary,
.bf-combined h2 {
	position: relative;
	margin: 0 0 24px;
	padding-top: 17px;
	color: var(--bf-text);
	font: 700 18px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.bf-group > summary {
	display: block;
	list-style: none;
	cursor: default;
}

.bf-group > summary::-webkit-details-marker {
	display: none;
}

.bf-group > summary::before,
.bf-combined h2::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 34px;
	height: 4px;
	border-radius: 2px;
	background: var(--bf-red);
}

.bf-group--combined > summary {
	display: none;
}

.bf-group:not([open]) > .bf-links,
.bf-group:not([open]) > .bf-combined {
	display: block;
}

.bf-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bf-links li + li {
	margin-top: 13px;
}

.bf-links a {
	display: inline-block;
	padding: 3px 0;
	color: var(--bf-muted);
	font-size: 15px;
	line-height: 1.45;
}

.bf-links a:hover {
	color: var(--bf-text);
}

.bf-links a::after {
	content: "";
	display: block;
	width: 0;
	height: 2px;
	margin-top: 2px;
	background: var(--bf-red);
	transition: width 180ms ease;
}

.bf-links a:hover::after,
.bf-links a:focus-visible::after {
	width: 28px;
}

.bf-combined {
	display: grid;
	gap: 40px;
}

.bf-combined section,
.bf-combined h2 {
	min-width: 0;
}

.bf-bottom {
	background: var(--bf-bg-deep);
}

.bf-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 76px;
	border-top: 1px solid var(--bf-border);
}

.bf-bottom p {
	margin: 0;
	color: var(--bf-subtle);
	font-size: 13px;
	line-height: 1.5;
}

.bf-credit {
	text-align: right;
}

.bf-credit a {
	color: var(--bf-muted);
	font-weight: 600;
}

.bf-credit a:hover {
	color: var(--bf-text);
}

.bf-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body #scrollUp {
	right: 28px;
	bottom: 28px;
	width: 50px;
	height: 50px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	background: #e31e24;
	box-shadow: none;
	color: #ffffff;
	font-size: 20px;
	line-height: 46px;
	text-align: center;
	transition: background-color 180ms ease, transform 180ms ease;
}

body #scrollUp:hover {
	background: #393185;
	color: #ffffff;
	transform: translateY(-2px);
}

body #scrollUp:focus-visible {
	outline: 3px solid #393185;
	outline-offset: 3px;
}

@media (max-width: 1199.98px) {
	.bf-main {
		padding-top: 54px;
	}

	.bf-grid {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.bf-brand {
		display: grid;
		grid-template-columns: minmax(240px, .72fr) minmax(430px, 1.28fr);
		gap: 44px;
		align-items: start;
	}

	.bf-contact {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 0;
	}

	.bf-contact__item--address {
		grid-row: span 2;
	}

	.bf-nav {
		padding-top: 42px;
		padding-left: 0;
		border-top: 1px solid var(--bf-border);
		border-left: 0;
	}
}

@media (max-width: 767.98px) {
	.bf-container {
		width: min(100% - 32px, 600px);
	}

	.bf-main {
		padding: 42px 0 38px;
	}

	.bf-grid {
		gap: 36px;
	}

	.bf-brand {
		display: block;
	}

	.bf-logo img {
		width: min(270px, 84vw);
	}

	.bf-contact {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 30px;
	}

	.bf-contact__item--address {
		grid-row: auto;
	}

	.bf-nav {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
		padding-top: 28px;
	}

	.bf-group > summary,
	.bf-group--combined > summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 20px;
		min-height: 52px;
		margin: 0;
		padding: 12px 16px;
		border-radius: 10px;
		background: var(--bf-surface);
		cursor: pointer;
		font-size: 16px;
	}

	.bf-group > summary::before {
		display: none;
	}

	.bf-group:not([open]) > .bf-links,
	.bf-group:not([open]) > .bf-combined {
		display: none;
	}

	.bf-plus {
		position: relative;
		width: 18px;
		height: 18px;
		flex: 0 0 18px;
	}

	.bf-plus::before,
	.bf-plus::after {
		content: "";
		position: absolute;
		top: 8px;
		left: 3px;
		width: 12px;
		height: 2px;
		border-radius: 1px;
		background: var(--bf-muted);
		transition: transform 180ms ease;
	}

	.bf-plus::after {
		transform: rotate(90deg);
	}

	.bf-group[open] .bf-plus::after {
		transform: rotate(0);
	}

	.bf-group > .bf-links,
	.bf-combined {
		padding: 18px 16px 12px;
	}

	.bf-combined {
		gap: 28px;
	}

	.bf-combined h2 {
		margin-bottom: 14px;
		padding-top: 0;
		font-size: 14px;
		letter-spacing: .05em;
		text-transform: uppercase;
	}

	.bf-combined h2::before {
		display: none;
	}

	.bf-links li + li {
		margin-top: 7px;
	}

	.bf-links a {
		display: flex;
		align-items: center;
		min-height: 44px;
		width: 100%;
		padding: 9px 0;
	}

	.bf-links a::after {
		display: none;
	}

	.bf-bottom__inner {
		align-items: flex-start;
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		min-height: 94px;
		padding: 16px 0;
	}

	.bf-credit {
		text-align: left;
	}

	.bf-credit a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin-block: -14px;
	}

	body #scrollUp {
		right: 16px;
		bottom: 16px;
		width: 46px;
		height: 46px;
		line-height: 42px;
	}
}

@media (max-width: 379.98px) {
	.bf-map-links a {
		min-height: 44px;
		padding-inline: 14px;
	}

	.bf-contact__value {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bf-footer *,
	.bf-footer *::before,
	.bf-footer *::after,
	body #scrollUp {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}
