/**
 * Шапка Өфө — 3D выпуклая, иконка-карта на белом фоне.
 */

.site-loader {
	display: none !important;
	pointer-events: none !important;
}

.site-header.ufa-sh {
	padding: 0;
	margin: 0;
}

.ufa-sh {
	position: relative;
	z-index: 10001;
	padding: 10px 14px 14px;
	background: linear-gradient(180deg, #eef2f7 0%, #dce4ee 100%);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.75) inset,
		0 8px 28px rgba(15, 23, 42, 0.1);
}

.ufa-sh::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
	pointer-events: none;
}

.ufa-sh__bar {
	position: relative;
	max-width: 1400px;
	margin: 0 auto;
	padding: 11px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: nowrap;
	border-radius: 20px;
	background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 42%, #e5ebf3 100%);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow:
		0 2px 0 rgba(255, 255, 255, 0.98) inset,
		0 -2px 6px rgba(148, 163, 184, 0.22) inset,
		0 10px 28px rgba(15, 23, 42, 0.12),
		0 2px 8px rgba(15, 23, 42, 0.06);
}

.ufa-sh__brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none !important;
	color: inherit !important;
	flex-shrink: 0;
}

.ufa-sh__logo {
	flex-shrink: 0;
	display: block;
	width: 46px;
	height: 46px;
	object-fit: contain;
	background: transparent;
}

.ufa-sh__brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.12;
}

.ufa-sh__name {
	font-size: 1.38rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #334155;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ufa-sh__tagline {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748b;
	text-transform: lowercase;
}

.ufa-sh__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	gap: 8px;
	flex-wrap: wrap;
}

.ufa-sh__link {
	font-size: 0.86rem;
	font-weight: 700;
	color: #334155 !important;
	text-decoration: none !important;
	white-space: nowrap;
	padding: 8px 14px;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fafc 0%, #e8edf3 100%);
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 -1px 3px rgba(148, 163, 184, 0.2) inset,
		0 2px 6px rgba(15, 23, 42, 0.06);
	transition: transform 0.15s, box-shadow 0.15s, color 0.15s;
}

.ufa-sh__link:hover {
	color: #0f172a !important;
	transform: translateY(-1px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 3px 10px rgba(15, 23, 42, 0.1);
}

.ufa-sh__link.is-active {
	color: #1d4ed8 !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 -2px 5px rgba(148, 163, 184, 0.28) inset,
		0 1px 4px rgba(15, 23, 42, 0.08);
}

.ufa-sh__link--telegram {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.15;
	gap: 1px;
	padding: 7px 14px;
}

.ufa-sh__tg-handle {
	font-size: 0.68rem;
	font-weight: 600;
	color: #64748b !important;
}

.ufa-sh__aside {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.ufa-sh__phone-block {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	min-width: 0;
	padding: 8px 14px;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fafc 0%, #e8edf3 100%);
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 -1px 3px rgba(148, 163, 184, 0.2) inset,
		0 2px 6px rgba(15, 23, 42, 0.06);
}

.ufa-sh__tel {
	font-size: 0.94rem;
	font-weight: 800;
	color: #0f172a !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.ufa-sh__callback {
	font-size: 0.72rem;
	font-weight: 600;
	color: #57534e !important;
	text-decoration: underline !important;
}

.ufa-sh__burger {
	display: none;
	width: 46px;
	height: 46px;
	align-items: center;
	justify-content: center;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff 0%, #e8edf3 100%);
	border: 1px solid rgba(255, 255, 255, 0.9);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 3px 10px rgba(15, 23, 42, 0.1);
	cursor: pointer;
	color: #334155;
	flex-shrink: 0;
}

.ufa-sh__mobile {
	margin: 8px 14px 0;
	padding: 12px 14px 14px;
	border-radius: 16px;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow:
		0 2px 0 rgba(255, 255, 255, 0.9) inset,
		0 6px 18px rgba(15, 23, 42, 0.08);
}

.ufa-sh__mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ufa-sh__mobile-nav a {
	display: block;
	padding: 10px 12px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 0.86rem;
	color: #334155 !important;
	text-decoration: none !important;
	background: linear-gradient(180deg, #f8fafc 0%, #e8edf3 100%);
	border: 1px solid rgba(255, 255, 255, 0.85);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.95) inset,
		0 -1px 3px rgba(148, 163, 184, 0.2) inset,
		0 2px 6px rgba(15, 23, 42, 0.06);
}

.ufa-sh__mobile-nav a:hover {
	background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.ufa-sem-ipo-toast {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 10002;
	max-width: min(360px, calc(100vw - 32px));
	pointer-events: none;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.ufa-sem-ipo-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.ufa-sem-ipo-toast__inner {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
	border: 1px solid #fde68a;
	border-radius: 14px;
	box-shadow:
		0 2px 0 rgba(255, 255, 255, 0.9) inset,
		0 8px 28px rgba(15, 23, 42, 0.14);
	font-size: 0.88rem;
	line-height: 1.35;
}

.ufa-sem-ipo-toast__text {
	flex: 1 1 auto;
	font-weight: 600;
	color: #1e293b;
}

.ufa-sem-ipo-toast__link {
	flex-shrink: 0;
	font-weight: 800;
	font-size: 0.82rem;
	color: #b45309 !important;
	text-decoration: none !important;
	white-space: nowrap;
}

.ufa-sem-ipo-toast__close {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

@media screen and (max-width: 1100px) {
	.ufa-sh__nav,
	.ufa-sh__phone-block {
		display: none;
	}

	.ufa-sh__burger {
		display: inline-flex;
	}

	.ufa-sh__bar {
		padding: 10px 14px;
	}
}

@media screen and (min-width: 1101px) {
	.ufa-sh__mobile {
		display: none !important;
	}
}

@media screen and (max-width: 480px) {
	.ufa-sem-ipo-toast {
		right: 12px;
		bottom: 12px;
		left: 12px;
		max-width: none;
	}

	.ufa-sem-ipo-toast__inner {
		flex-wrap: wrap;
	}

	.ufa-sh {
		padding: 8px 10px 10px;
	}

	.ufa-sh__logo {
		width: 40px;
		height: 40px;
	}

	.ufa-sh__name {
		font-size: 1.2rem;
	}
}

body > header.site-header.ufa-sh {
	flex-shrink: 0 !important;
	width: 100% !important;
	min-height: 52px !important;
}
