/* =========================================================
   HEADER
   ========================================================= */

.site-header {
	position: relative;
	z-index: var(--vstion-z-header);
	width: 100%;
	min-height: 220px;
	border-bottom: 1px solid var(--vstion-border);
	background: var(--vstion-white);
}

.header-inner {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 220px;
	box-sizing: border-box;
}


/* =========================================================
   ЛОГОТИП 200×200
   ========================================================= */

.site-branding {
	display: flex;
	align-items: center;

	flex: 0 0 200px;
	width: 200px;
	min-width: 200px;
}

.site-branding a {
	color: var(--vstion-text);
	text-decoration: none;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 200px;
	height: 200px;

	flex: 0 0 200px;

	line-height: 0;
}

.custom-logo {
	display: block;

	width: 200px;
	height: 200px;

	max-width: 200px;
	max-height: 200px;

	object-fit: contain;
}


/* =========================================================
   НАВИГАЦИЯ РЯДОМ С ЛОГОТИПОМ
   ========================================================= */

.header-inner .main-navigation {
	flex: 1 1 auto;
	min-width: 0;

	margin-left: 20px;
}


/* =========================================================
   МОБИЛЬНОЕ МЕНЮ
   ========================================================= */

.menu-toggle {
	display: none;
}

/* =========================================================
   РЕКЛАМА В ШАПКЕ — ADS1 / ADS2
   МАКСИМУМ: 600 × 300 PX
   Пустой виджет остаётся минимального размера
   ========================================================= */

.site-header > .vstion-ads-container {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-start !important;
	justify-content: center !important;

	gap: 20px !important;

	width: 90% !important;
	max-width: 1220px !important;

	min-height: 0 !important;
	height: auto !important;
	max-height: 300px !important;

	margin: 0 auto 20px !important;
	padding: 0 !important;

	box-sizing: border-box !important;

	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;

	overflow: hidden !important;
}


/* =========================================================
   ADS1 / ADS2
   МАКСИМУМ 600 × 300
   НО ПУСТОЙ ВИДЖЕТ НЕ РАСТЯГИВАЕТСЯ
   ========================================================= */

.site-header > .vstion-ads-container > .vstion-ads-box {
	display: block !important;

	flex: 0 1 600px !important;

	width: 600px !important;
	max-width: 600px !important;

	min-width: 0 !important;
	min-height: 0 !important;

	height: auto !important;
	max-height: 300px !important;

	margin: 0 !important;
	padding: 0 !important;

	box-sizing: border-box !important;

	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;

	overflow: hidden !important;

	text-align: center !important;
}


/* =========================================================
   WIDGET
   НЕ ЗАДАЁМ ФИКСИРОВАННУЮ ВЫСОТУ
   ========================================================= */

.site-header > .vstion-ads-container > .vstion-ads-box > .widget {
	display: block !important;

	width: 100% !important;
	max-width: 600px !important;

	min-width: 0 !important;
	min-height: 0 !important;

	height: auto !important;
	max-height: 300px !important;

	margin: 0 !important;
	padding: 0 !important;

	box-sizing: border-box !important;

	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;

	overflow: hidden !important;
}


/* =========================================================
   СОДЕРЖИМОЕ ВИДЖЕТА
   НЕ МОЖЕТ РАСТЯНУТЬ БЛОК БОЛЬШЕ 600 × 300
   ========================================================= */

.site-header > .vstion-ads-container > .vstion-ads-box > .widget > * {
	max-width: 600px !important;
	max-height: 300px !important;

	box-sizing: border-box !important;
}


/* =========================================================
   IFRAME
   ========================================================= */

.site-header > .vstion-ads-container iframe {
	display: block !important;

	max-width: 600px !important;
	max-height: 300px !important;

	margin: 0 auto !important;

	border: 0 !important;

	overflow: hidden !important;
}


/* =========================================================
   КАРТИНКИ
   ========================================================= */

.site-header > .vstion-ads-container img {
	display: block !important;

	max-width: 600px !important;
	max-height: 300px !important;

	width: auto !important;
	height: auto !important;

	margin: 0 auto !important;

	object-fit: contain !important;
}


/* =========================================================
   INS / РЕКЛАМНЫЙ КОД
   ========================================================= */

.site-header > .vstion-ads-container ins {
	display: block !important;

	max-width: 600px !important;
	max-height: 300px !important;

	overflow: hidden !important;
}


/* =========================================================
   SCRIPT
   ========================================================= */

.site-header > .vstion-ads-container script {
	max-width: 600px !important;
	max-height: 300px !important;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 800px) {

	.site-header > .vstion-ads-container {
		flex-wrap: wrap !important;

		width: 90% !important;
		max-width: 100% !important;

		max-height: none !important;
	}

	.site-header > .vstion-ads-container > .vstion-ads-box {
		flex: 0 1 600px !important;

		width: 600px !important;
		max-width: 600px !important;

		height: auto !important;
		max-height: 300px !important;
	}
}


/* =========================================================
   МОБИЛЬНЫЕ
   ========================================================= */

@media (max-width: 600px) {

	.site-header > .vstion-ads-container {
		flex-direction: column !important;
		align-items: center !important;

		gap: 12px !important;

		width: 92% !important;
		max-width: 100% !important;

		max-height: none !important;
	}

	.site-header > .vstion-ads-container > .vstion-ads-box {
		width: 100% !important;
		max-width: 600px !important;

		height: auto !important;
		max-height: 300px !important;

		flex: 0 1 auto !important;
	}
}