/*
 * Profair24 global header and footer.
 *
 * This is the single authoritative shell stylesheet for every template.
 * It loads after both the redesigned and legacy page styles so old page CSS
 * cannot restore the former grey footer or the broken mobile alignment.
 */

:root {
	--pf-shell-accent: #08afd7;
	--pf-shell-footer: #103d4e;
	--pf-shell-white: #fff;
}

/* Header */
.site-header {
	position: sticky;
	z-index: 999;
	top: 0;
	background: var(--pf-shell-accent) !important;
	box-shadow: 0 3px 10px rgba(16, 61, 78, .18);
}

.site-header .container {
	width: min(1140px, calc(100% - 40px));
	margin-inline: auto;
}

.site-header .header_home {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto 36px;
	grid-template-areas: "logo menu phone social";
	align-items: center;
	gap: clamp(14px, 2vw, 28px);
	min-height: 76px;
	height: auto;
	padding: 0;
}

.site-header .header_home_logo {
	position: static;
	grid-area: logo;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.site-header .header_home_logo .custom-logo-link,
.site-header .header_home_logo .custom-logo {
	display: block;
}

.site-header .header_home_logo .custom-logo {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.site-header .header_home_menu {
	grid-area: menu;
	min-width: 0;
}

.site-header .header_home_phone,
.site-header .header_home_social,
.site-header .header_home_phone li,
.site-header .header_home_social li {
	margin: 0;
	padding: 0 !important;
	list-style: none;
}

.site-header .header_home_phone {
	grid-area: phone;
	display: block !important;
	justify-self: center;
}

.site-header .header_home_phone a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	border: 0;
	color: var(--pf-shell-white) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

.site-header .header_home_social {
	grid-area: social;
	display: flex !important;
	align-items: center;
	justify-content: center;
	justify-self: center;
}

.site-header .header_home_social > li {
	display: block !important;
	width: auto !important;
}

.site-header .header_home_social a {
	display: grid;
	width: 34px;
	height: 34px;
	margin: 0;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 50%;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease;
}

.site-header .header_home_social a:hover,
.site-header .header_home_social a:focus-visible {
	border-color: #fff;
	background: rgba(255, 255, 255, .14);
}

.site-header .header_home_social img {
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	object-fit: contain;
}

/* Footer */
.site-footer {
	flex: 0 0 auto;
	margin-top: 0;
	padding: 44px 0 0 !important;
	background: var(--pf-shell-footer) !important;
	color: var(--pf-shell-white) !important;
}

.site-footer .container {
	width: min(1140px, calc(100% - 40px));
	margin-inline: auto;
}

.site-footer .footer_ul,
.site-footer .footer_home_menu_ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer .footer_ul {
	display: grid !important;
	grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
	align-items: center;
	gap: 40px;
	margin-bottom: 32px;
}

.site-footer .footer_ul > li {
	display: block !important;
	width: auto !important;
	margin: 0;
	padding: 0;
}

.site-footer .footer_text {
	color: var(--pf-shell-white) !important;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
	text-align: left;
}

.site-footer .footer_text > * {
	width: auto !important;
}

.site-footer .footer_ul_logo {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.site-footer .footer_ul_logo .custom-logo-link,
.site-footer .footer_ul_logo .custom-logo {
	display: block;
}

.site-footer .footer_ul_logo .custom-logo {
	width: 82px;
	height: 82px;
	object-fit: contain;
}

.site-footer .footer_menu {
	display: flex !important;
	justify-content: flex-end;
}

.site-footer .footer_home_menu {
	width: 100%;
}

.site-footer .footer_home_menu_ul {
	display: grid;
	gap: 5px;
	text-align: right;
}

.site-footer .footer_home_menu_ul li {
	display: block !important;
	width: auto !important;
	margin: 0;
	padding: 0;
	text-align: inherit;
}

.site-footer .footer_home_menu_ul a {
	position: static !important;
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 3px 0;
	color: var(--pf-shell-white) !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
}

.site-footer .footer_home_menu_ul a:hover,
.site-footer .footer_home_menu_ul a:focus-visible,
.site-footer .footer_link_poll a:hover,
.site-footer .footer_link_poll a:focus-visible {
	color: #70e3f7 !important;
}

.site-footer .footer_link_poll {
	display: flex !important;
	align-items: center;
	justify-content: center !important;
	gap: 18px;
	padding: 17px 0;
	border-top: 1px solid rgba(255, 255, 255, .24);
	color: var(--pf-shell-white) !important;
	font-size: 13px;
	text-align: center;
}

.site-footer .footer_link_poll a,
.site-footer .footer_link_poll span {
	margin: 0 !important;
	color: var(--pf-shell-white) !important;
	text-decoration: none;
}

@media (max-width: 991px) {
	.site-header .container {
		width: 100%;
	}

	.site-header .header_home {
		grid-template-columns: 52px minmax(0, 1fr) 38px 46px;
		grid-template-areas: "logo phone social menu";
		gap: 6px;
		min-height: 72px;
		padding-inline: 12px;
	}

	.site-header .header_home_logo {
		justify-content: center;
	}

	.site-header .header_home_logo .custom-logo {
		width: 50px;
		height: 50px;
	}

	.site-header .header_home_phone {
		position: absolute;
		z-index: 2;
		left: 50%;
		justify-self: auto;
		transform: translateX(-50%);
	}

	.site-header .header_home_phone a {
		min-height: 42px;
		font-size: clamp(12.5px, 3.55vw, 15px);
	}

	.site-header .header_home_social {
		position: static;
		right: auto;
		justify-self: center;
	}

	.site-header .header_home_social a {
		width: 34px;
		height: 34px;
	}

	.site-header .header_home_menu {
		width: 46px;
		justify-self: end;
	}

	.site-header #mega-menu-wrap-Header,
	.site-header #mega-menu-wrap-Header .mega-menu-toggle {
		width: 46px;
	}

	.site-header #mega-menu-wrap-Header .mega-menu-toggle + #mega-menu-Header {
		display: none;
	}

	.site-header #mega-menu-wrap-Header .mega-menu-toggle.mega-menu-open + #mega-menu-Header {
		display: block;
		right: 0;
	}

	.site-header #mega-menu-wrap-Header .mega-menu-toggle {
		display: flex;
		min-height: 46px;
		align-items: center;
		justify-content: center;
	}

	.site-header #mega-menu-wrap-Header .mega-toggle-blocks-right {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.site-footer {
		padding-top: 34px !important;
	}

	.site-footer .container {
		width: min(1140px, calc(100% - 32px));
	}

	.site-footer .footer_ul {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin-bottom: 26px;
		text-align: center;
	}

	.site-footer .footer_ul_logo {
		order: 1;
		width: 100% !important;
		margin: 0 auto !important;
		justify-self: stretch !important;
		align-self: center;
		justify-content: center !important;
		text-align: center;
	}

	.site-footer .footer_ul_logo .custom-logo-link {
		display: block;
		width: max-content;
		margin: 0 auto !important;
	}

	.site-footer .footer_text {
		order: 2;
		display: block !important;
		color: var(--pf-shell-white) !important;
		font-size: 15px;
		line-height: 1.65;
		text-align: center !important;
	}

	.site-footer .footer_text p,
	.site-footer .footer_text > * {
		width: 100% !important;
		margin-inline: auto;
		text-align: center !important;
	}

	.site-footer .footer_ul_logo .custom-logo {
		width: 74px;
		height: 74px;
	}

	.site-footer .footer_menu {
		order: 3;
		display: flex !important;
		justify-content: center !important;
	}

	.site-footer .footer_home_menu_ul {
		gap: 2px;
		text-align: center;
	}

	.site-footer .footer_home_menu_ul li {
		justify-content: center !important;
		text-align: center;
	}

	.site-footer .footer_home_menu_ul a {
		min-height: 42px;
		justify-content: center;
		font-size: 17px;
	}

	.site-footer .footer_link_poll {
		flex-direction: column;
		gap: 6px;
		padding: 17px 0 20px;
	}
}

@media (max-width: 359px) {
	.site-header .header_home {
		grid-template-columns: 46px minmax(0, 1fr) 34px 42px;
		gap: 5px;
		padding-inline: 10px;
	}

	.site-header .header_home_logo .custom-logo {
		width: 46px;
		height: 46px;
	}

	.site-header .header_home_phone a {
		font-size: 12px;
	}

	.site-header .header_home_social a {
		width: 32px;
		height: 32px;
	}

	.site-header .header_home_social img {
		width: 18px;
		height: 18px;
	}

	.site-header .header_home_menu,
	.site-header #mega-menu-wrap-Header,
	.site-header #mega-menu-wrap-Header .mega-menu-toggle {
		width: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header .header_home_social a {
		transition: none;
	}
}
