/**
 * Header block: logo + contacts.
 */
.fmaster-logo-header {
	display: flex;
	flex-direction: row;
	column-gap: 20px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
}
.fmaster-logo-header__logo {
	display: block;
	width: 265px;
	height: auto;
}

.fmaster-contacts {
	display: flex;
	flex-direction: row;
	column-gap: 20px;
	align-items: center;
	margin: 0 !important;
}
.fmaster-contacts__phone {
	text-align: center;
	color: #222;
	line-height: 1.8em;
}
.fmaster-contacts__phone-number {
	font-size: 30px;
}
.fmaster-contacts__telegram img,
.fmaster-contacts__viber img {
	width: 50px;
	height: 50px;
}

/**
 * Tablet and mobile: logo on top, contacts as a full-width strip with the
 * #E6EFFD background — the way the second header row used to look.
 */
@media (max-width: 1024px) {
	/* Row height = 90px for the logo + 90px for the contacts strip, matching
	   production where these were two separate 90px rows. Doubled :root beats
	   the CSS generated by the header builder regardless of stylesheet order. */
	:root:root {
		--wd-header-general-sm-h: 180px;
	}
	/* The strip breaks out of .container to span the whole viewport.
	   clip prevents a horizontal scrollbar in browsers with classic scrollbars. */
	.whb-general-header {
		overflow-x: clip;
	}
	.fmaster-logo-header {
		flex-direction: column;
		justify-content: space-between;
		column-gap: 0;
		row-gap: 0;
		height: 100%;
	}
	.fmaster-logo-header__logo-link {
		display: flex;
		flex: 1 1 auto;
		align-items: center;
	}
	.fmaster-logo-header .fmaster-contacts {
		width: 100vw;
		margin-inline: calc(50% - 50vw);
		justify-content: center;
		min-height: 90px;
		background-color: #E6EFFD;
	}
}

@media (max-width: 480px) {
	.fmaster-contacts__phone-number {
		font-size: 26px;
	}
}

/** active menu item **/
.wd-nav.wd-style-bg>li>a:before {
	background-color: #fff;
	opacity: 1 !important;
}
