/**
 * Полоса под шапкой: ширина как у .inside-header.grid-container, не на весь экран.
 */

.kzn-social-bar-outer {
	width: 100%;
}

.kzn-social-bar.grid-container {
	box-sizing: border-box;
	padding: 3px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	background: #f7f9fc;
	font-size: 12px;
	line-height: 1.2;
}

.kzn-social-bar__row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 12px;
	min-height: 22px;
}

.kzn-social-bar__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.kzn-social-bar__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 4px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kzn-social-bar__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.kzn-social-bar__link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 4px;
	border-radius: 3px;
	color: #333 !important;
	text-decoration: none !important;
	line-height: 1.2;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.kzn-social-bar__link:hover,
.kzn-social-bar__link:focus {
	color: #fff !important;
	background-color: #1e98ff;
	text-decoration: none !important;
}

.kzn-social-bar__icon {
	display: block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.kzn-social-bar__label {
	display: inline;
	white-space: nowrap;
	line-height: 1.2;
}

.kzn-social-bar__contacts {
	flex: 0 0 auto;
	margin-left: auto;
	padding-right: 5px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 16px;
}

.kzn-social-bar__phone,
.kzn-social-bar__email {
	padding: 2px 4px;
	color: #333;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	line-height: 1.2;
}

.kzn-social-bar__phone:hover,
.kzn-social-bar__phone:focus,
.kzn-social-bar__email:hover,
.kzn-social-bar__email:focus {
	color: #1e98ff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Только контакты, без соцсетей */
.kzn-social-bar__row--contacts-only {
	justify-content: flex-end;
}

@media (max-width: 768px) {
	.kzn-social-bar__row {
		gap: 4px;
		flex-wrap: nowrap;
	}

	.kzn-social-bar__list {
		gap: 2px;
		flex-wrap: nowrap;
	}

	.kzn-social-bar__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.kzn-social-bar__link {
		padding: 2px;
		gap: 0;
	}

	.kzn-social-bar__contacts {
		flex-shrink: 0;
		margin-left: auto;
		padding-right: 8px;
		width: auto;
		gap: 2px 6px;
		justify-content: flex-end;
	}

	.kzn-social-bar__phone,
	.kzn-social-bar__email {
		padding: 2px 1px;
	}
}

@media (max-width: 480px) {
	.kzn-social-bar__contacts {
		padding-right: 12px;
		gap: 2px 4px;
	}

	.kzn-social-bar__list {
		gap: 1px;
	}

	.kzn-social-bar__link {
		padding: 1px;
	}
}

/* Пункты главного меню, перенесённые в полосу соцсетей */
.main-navigation .menu-item.kzn-hide-from-main-nav {
	display: none !important;
}
