﻿/* =========== © 2024 Centroarts.com =========== */

@media (min-width: 1240px) {
	body { padding-left: 48px; padding-right: 48px; }
}
@media (min-width: 1420px) {
	body.bg-avia, body.bg-vks { background-image: var(--bg-avia); }
	body.bg-fleet, body.bg-vmf { background-image: var(--bg-fleet); }
	body.bg-ground, body.bg-sv { background-image: var(--bg-ground); }
	body.branding { background-attachment: fixed; background-position: 50% 0; background-repeat: no-repeat; }
}
@media (min-width: 992px) {
	:root { scroll-padding-top: 60px; }
}
#adfoxBranding { z-index: 0; }
#adfox_desktop_3, #adfox_desktop_5 { max-width: 380px; max-height: 90vh; overflow: hidden; }

/* --- Header --- */
.h-tools { display: flex; }
.h-tool > svg, .iswap * { pointer-events: none; }

.iswap, .iswap-ic { display: block; width: 24px; height: 24px; }

.iswap { display: block; }
.iswap-ic { position: absolute !important; }

.h-tool .dropdown-btn, .h-tool-notify-preload {
	display: block; line-height: 24px; cursor: pointer;
	border: 0 none !important; background: none !important; color: var(--link-head-color);
}
.h-tool .dropdown-btn > svg, .ic-num svg, .h-tool-notify-preload > svg { display: block; }

.h-tool-notify-preload { pointer-events: none; }
.h-tool-notify + .h-tool-notify-preload { display: none !important; }

@media (min-width: 992px) {
	.header {
		--icon-space: 8px;
		display: flex; justify-content: space-between; align-items: center; order: -1; height: 72px; padding: 0 var(--gap); 
	}
	.h-tools, .h-date { font-size: var(--fs-sm); min-width: 300px; max-width: 300px; display: flex !important; }

	.h-date > a { display: inline-flex; vertical-align: top; align-items: center; line-height: 20px; color: inherit !important; text-decoration: none !important; }
	html.dark .h-date > a, .h-date .ic { color: var(--link-head-color); }
	.h-date > a > i { font-style: normal; }

	.h-tools { display: flex; align-items: center; justify-content: flex-end; }
	.h-tools:not(.logged) { margin-right: -10px; }
	.h-tool-link { color: var(--link-head-color); }
	.h-tool-link {
		display: flex; align-items: center; text-decoration: none !important;
		line-height: 20px; padding: 10px; font-weight: bold;
	}
	.h-tool-link:hover { color: var(--link-head-color-h); }

	.h-tool-link .ic { display: block !important; }
	.h-tool-link .ic2 { display: none !important; }

	.h-date > a > * + *, .h-tool-link svg + span, .h-tool-link + .h-tool-link { margin-left: var(--icon-space); }

	.iswap-close { display: none !important; }

	.h-tool .dropdown-btn, .h-tool-notify-preload { width: 40px; height: 40px; }
	.h-tool.dropdown + .h-tool.dropdown, .notification-widget + .h-tool.dropdown { margin-left: 12px; }
	.h-tool-notify-preload { padding: 8px; }

	.udrop-btn { padding: 0; }
	
	.h-tool-user .iswap { display: none !important; }
	.udrop-avatar {
		display: block !important; width: inherit; height: inherit;
		border-radius: var(--avatar-head-radius); background-color: var(--noavatar-bg);
		pointer-events: none; transition: var(--opacity-animation);
	}
	.open > .udrop-btn .udrop-avatar { opacity: .8; }

	/* - Замена меню в шапке для ПК - */
	html.coms-view .h-menu-foruser { display: none !important; }
	html.coms-view .h-menu-coms { display: flex !important; }
	.h-menu-coms a.disabled { display: none; }
}
@media (max-width: 991px) {
	.header { background-color: var(--page-bg); box-shadow: 0 2px 12px -2px rgba(0, 0, 0, .1), 0 0 1px 0 rgba(0, 0, 0, .1); }
	.h-tool, .h-tool .dropdown-btn { display: flex !important; align-items: center; justify-content: center; height: 48px; }
	.h-tool, .notification-widget {
		flex: 0 0 25%; max-width: 25%;
		position: relative; border: 0 none !important; background: none !important;
		color: var(--link-head-color) !important; line-height: 24px;
	}
	.notification-widget { position: static; }
	.notification-widget .h-tool { max-width: 100%; flex: 0 0 100%; }

	.h-tool.dropdown { position: static; }
	.h-tools, .h-tool:not(.dropdown), .h-tool.dropdown .dropdown-btn { position: relative !important; }

	.h-tool:not(.dropdown) { padding: 12px; }
	.h-tool:not(.dropdown)::after,
	.h-tool.dropdown .dropdown-btn::after,
	.h-tool-notify-preload::after { content: ""; position: absolute; bottom: 0; right: 0; pointer-events: none; border-right: 1px solid var(--link-head-color); width: 0; height: 36px; opacity: .1; }
	.h-tool-notify-preload::after { display: block !important; }

	.h-tool:last-child::after { display: none; }
	.h-tool-link > span { display: none !important; }

	.h-tool .dropdown-btn { width: 100%; padding: 12px; }

	.iswap-close, .iswap-ic { transition: var(--opacity-animation), transform .2s ease; }
	.iswap-close { opacity: 0; transform: translateY(6px); }

	html.mm .h-tool-burger .iswap-close,
	.h-tool-user.open .iswap-close, .h-tool-notify.open .iswap-close,
	.qsearch-drop.open ~ .header .h-tool-search .iswap-close { opacity: .5; transform: translateY(0); }

	html.mm .h-tool-burger .iswap-ic,
	.h-tool-user.open .iswap-ic, .h-tool-notify.open .iswap-ic,
	.qsearch-drop.open ~ .header .h-tool-search .iswap-ic { opacity: 0; transform: translateY(-6px); }

	.h-tool .dropdown-box { left: 0; margin-top: 0; width: 100%; }
}
@media (min-width: 460px) and (max-width: 991px) {
	.h-tool .dropdown-box { border-radius: 12px !important; border-top-right-radius: 0 !important; border-top-left-radius: 0 !important; }
}
@media (max-width: 459px) {
	html.mm body, html.mn body, html.mu body { overflow: hidden; }
	html.mm .header, html.mn .header, html.mu .header { position: fixed; z-index: 101; }

	.header { position: absolute; left: 0; top: 0; width: 100%; min-width: var(--page-minwidth); }
	.page { padding-top: 108px; }

	.h-tool .dropdown-box { position: fixed; bottom: 0; top: 108px; border-radius: 0; }
}

/* - Menu - */
.h-menu-sublinks { height: 44px; }
.hm-scroll { min-width: 0; overflow: hidden; position: relative; }

.h-menu, .h-menu-sublinks {
	line-height: 20px; background-color: var(--menu-color); color: var(--menu-link-color);
}
.h-menu-links, .h-menu-sublinks { text-transform: uppercase; user-select: none; }
.h-menu a, .h-menu-sublinks a { text-decoration: none !important; color: inherit !important; display: block; opacity: .8; white-space: nowrap; }

.h-menu-links a, .h-menu-sublinks a { opacity: .8; padding: 12px; }
.h-menu-sublinks { font-size: var(--fs-sm); }

.h-menu-sublinks > nav { display: flex; }
.h-menu-links a.active, .h-menu-sublinks a.active { opacity: 1 !important; }
.h-menu-links { font-weight: bold; }
.h-menu-links h1 { all: unset; }
.h-menu-sublinks h1 { all: unset; }

@media (max-width: 991px) {
	html.mm .h-menu { display: flex !important; }
	.h-menu {
		position: absolute; z-index: 100; top: 108px; left: 0; right: 0;
		flex-direction: column; overflow: hidden;
		background-color: var(--menu-color);
	}
	.h-menu-over {
		flex: 1 1 auto; min-height: 200px; padding-left: var(--gap);
		padding-right: calc(var(--gap) + 20px); margin-right: -20px;
		overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
	}
	.h-menu-soc, .h-menu-langs, .h-menu-add { display: block !important; }

	.h-menu-tools { display: flex; padding: var(--gap); padding-left: 0; padding-bottom: 0; position: relative; }
	.h-menu-tools::after, .h-menu::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: 16px; pointer-events: none; }
	.h-menu-tools::after {
		top: 100%; background-image: linear-gradient(0deg, rgba(var(--menu-color-rgb),0) 0%, rgba(var(--menu-color-rgb),1) 100%);
	}
	.h-menu::after { bottom: 0; background-image: linear-gradient(180deg, rgba(var(--menu-color-rgb),0) 0%, rgba(var(--menu-color-rgb),1) 100%); }

	.h-menu-langs { flex: 1 1 auto; height: 40px; }
	.h-menu-langs .langs::after, .h-menu-langs .langs::before { min-width: 20px; max-width: 20px; }

	.h-menu-over { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .4s ease; }
	.h-menu-links { column-count: 2; font-size: 18px; padding: calc(var(--gap) - 8px) 0;  }
	.h-menu.open .h-menu-over { opacity: 1; transform: translateY(0); }

	.h-menu-links a { display: block !important; padding: 8px 0; line-height: 24px; }

	.h-menu-add { font-size: var(--fs-sm); padding: calc(var(--gap) - 6px) 0; }
	.h-menu-add a { padding: 6px 0; }

	.hm-scroll::after, .hm-scroll::before {
		content: ""; height: inherit; width: 16px; position: absolute; top: 0; z-index: 1; pointer-events: none;
	}
	.hm-scroll::after { right: 0; background-image: linear-gradient(90deg, rgba(var(--menu-color-rgb),0) 0%, rgba(var(--menu-color-rgb),1) 100%); }
	.hm-scroll::before { left: 0; background-image: linear-gradient(-90deg, rgba(var(--menu-color-rgb),0) 0%, rgba(var(--menu-color-rgb),1) 100%); }

	.hm-scroll-in::after, .hm-scroll-in::before { content: ""; display: block; height: 10px; }
	.hm-scroll-in { overflow: hidden; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; margin-bottom: -20px; }

	.h-menu-sublinks nav::after, .h-menu-sublinks nav::before { min-width: 8px; max-width: 8px; }

	.h-menu-soc { padding: 12px 0; border: var(--border-width) solid var(--border-white); border-left-width: 0; border-right-width: 0; }
}
@media (min-width: 460px) and (max-width: 991px) {
	.h-menu { position: absolute; border-radius: 12px; border-top-right-radius: 0; border-top-left-radius: 0; }
	.h-menu-links { column-count: 2; }
	.h-menu-add { display: flex !important; }
	.h-menu-add a + a { margin-left: 20px; }
}
@media (max-width: 459px) {
	.h-menu { position: fixed; bottom: 0; }
}
@media (min-width: 992px) {
	.h-menu {
		display: flex !important; justify-content: center; padding: 0 16px;
		position: sticky; top: 0; z-index: 99; font-size: var(--fs-sm);
	}

	.h-menu-links { display: flex; }
	.h-menu-links a, .h-menu-sublinks a, .h-menu-icons a { display: block; transition: var(--opacity-animation); }
	.h-menu-links:hover a, .h-menu-sublinks:hover a { opacity: .6; }
	.h-menu-links:hover a:hover, .h-menu-sublinks:hover a:hover { opacity: .85; }

	.h-menu-links a[data-num]::after, .h-menu-sublinks a[data-num]::after {
		content: attr(data-num); display: inline-block; vertical-align: top; margin-top: 1px; margin-left: 4px;
		background-color: var(--menu-link-color); color: var(--primary-color); font-size: var(--fs-xsm);
		height: 18px; line-height: 18px; padding: 0 6px; border-radius: 8px; font-weight: 700 !important;
	}
	.fcoms-menu-new[data-num]::after {
		color: #fff!important;
		background-color: var(--new-label)!important;
	  }
	.h-menu-sublinks > nav { margin: 0 8px; justify-content: center; box-shadow: inset 0 1px 0 0 var(--border-white); }
	.h-menu-sublinks a { padding-left: 8px; padding-right: 8px;  overflow-x: auto; }

	/* Icons PC - qSearch & Icon Home */
	.h-menu-icons {
		display: flex !important; justify-content: space-between; padding-left: 16px; padding-right: 16px;
		position: sticky; top: 0; width: 100%; height: 0; z-index: 101; color: #fff;
	}
	.h-menu-icons a { width: 44px; height: 44px; line-height: 20px; color: inherit !important; opacity: .8; padding: 12px; }
	.h-menu-icons a:hover { opacity: 1; }
	.h-menu-icons > a svg { display: block; width: 20px; height: 20px; }
}

/* - qSearch - */
.qsearch-drop { z-index: 100; top: 0; }
.qsearch-field { display: flex; line-height: 24px; height: 44px; position: relative; }
.qsearch-field-input, .qsearch-field-btn {
	line-height: inherit !important; height: inherit !important; color: inherit !important;
	background: none !important; box-shadow: none !important; border: 0 none !important;
}
.qsearch-field-btn { transition: var(--opacity-animation); }
.qsearch-field-input { flex: 1 1 auto; }
.qsearch-field-line {
	position: absolute; bottom: 0; left: 0; right: 0; pointer-events: none;
}

@media (min-width: 992px) {
	.h-menu-search path { transition: var(--opacity-animation); }
	.qsearch-drop.open ~ .h-menu-icons .h-menu-search .qsearch-btn-io { opacity: 0;; }
	.qsearch-drop.open ~ .h-menu-icons .h-menu-search .qsearch-btn-ic { opacity: 1 !important; }

	.qsearch-drop.open ~ .h-menu .h-menu-links { opacity: 0; visibility: hidden; }

	.qsearch-drop { height: 0; width: 100%; position: sticky; }
	.qsearch-drop-box {
		background-color: rgba(var(--dark-drop-rgb), 0.9); box-shadow: inset 0 1px 0 0 rgba(var(--dark-drop-rgb), 1.0);
		color: var(--dark-drop-text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	}
	.qsearch-drop.open, .qsearch-links { display: block !important; }

	html.scroll .qsearch-drop.open { position: fixed; left: 0; right: 0; }
	html.scroll .qsearch-drop.open .qsearch-drop-box {
		max-width: var(--page-maxwidth); margin-left: auto; margin-right: auto;
	}

	.qsearch-drop-box > form, .qsearch-ya-form { max-width: 624px; display: block; margin: 0 auto; }
	.qsearch-field-input, .qsearch-field-btn { padding: 10px 0 !important; }
	.qsearch-field-input { padding-right: 8px !important; }
	.qsearch-field-btn { text-transform: uppercase; font-weight: bold; font-size: var(--fs-sm); opacity: .8; }
	.qsearch-field-btn:hover { opacity: 1; }
	.qsearch-field-btn svg { display: none; }
	.qsearch-field-line { height: 0; border-top: 1px solid; opacity: .2; transition: var(--opacity-animation); }
	.qsearch-field-input:focus ~ .qsearch-field-line { opacity: .5; }

	.qsearch-links { display: block !important; column-count: 3; padding: 16px 0; font-size: var(--fs-sm); }
	.qsearch-links a { display: block; padding: 2px 0; color: inherit !important; text-decoration: none !important; opacity: .8; transition: var(--opacity-animation); }
	.qsearch-links a:hover { opacity: 1; }
}
@media (max-width: 991px) {
	.qsearch-drop {
		position: absolute; left: 0; right: 0; display: block !important; opacity: 0; visibility: hidden; transform: translateY(4px); z-index: 100;
		transition: var(--opacity-animation), visibility .2s ease, transform .35s ease;
	}
	.qsearch-drop.open { opacity: 1; visibility: visible; transform: translateY(12px); }
	.qsearch-drop-box { padding: 0 var(--gap); }
	.qsearch-field-btn, .qsearch-field-line::after { opacity: .8; }
	.qsearch-field-btn { padding: 10px 12px; }
	.qsearch-field-btn > .ic2 { display: block; color: var(--primary-color); }
	.qsearch-field-btn > span { display: none; }

	.qsearch-field-input { padding: 10px 0 !important; padding-left: 16px !important; }
	.qsearch-field-line {
		top: 0; height: inherit; border-radius: 22px; z-index: -1;
		background-color: var(--page-bg); /*box-shadow: 0px 4px 24px 0px rgba(var(--primary-color-rgb), 0.1);*/
	}
	.qsearch-field-line::after { content: ""; display: block; width: 100%; height: 100%; border: 1px solid var(--quick-search-border); border-radius: inherit; transition: var(--opacity-animation); }
	.qsearch-field-input:focus ~ .qsearch-field-btn,
	.qsearch-field-input:focus ~ .qsearch-field-line::after { opacity: 1; }
}
@media (max-width: 575px) {
	.qsearch-drop-box { padding-left: var(--gap-min); padding-right: var(--gap-min); min-width: 320px; }
}

/* - Dark Mod Switch - */
.h-menu-mod { display: flex; align-items: center; cursor: pointer; border: 0 none !important; background: none !important; }
.h-menu-mod-in {
	display: flex; position: relative;
	border: 0 none; background-color: #FFFFFF33; color: #fff; border-radius: 18px;
	transition: background-color .2s ease;
}
.h-menu-mod-in::after {
	content: ""; position: absolute; border-radius: 50%; background-color: #fff; transition: transform .2s ease;
}
.h-menu-mod-in svg { fill: currentColor; pointer-events: none; }

html.dark .h-menu-mod-in { background-color: #00000033; }
html.dark .h-menu-mod-in::after { transform: translateX(0); }

@media (max-width: 991px) {
	.h-menu-mod { padding: 0; margin-left: 16px; }
	.h-menu-mod-in { width: 66px; height: 36px; padding: 6px; }
	.h-menu-mod-in::after {
		left: 6px; top: 6px; width: 24px; height: 24px; transform: translateX(30px);
	}
	.h-menu-mod-in svg { width: 24px !important; height: 24px !important; }
	.h-menu-mod-in svg + svg { margin-left: 6px; }
}
@media (min-width: 992px) {
	.h-menu-mod { position: absolute; right: 64px; top: 0; height: 44px; padding: 11px 0; }
	.h-menu-mod-in { width: 42px; height: 22px; padding: 2px; }

	.h-menu-mod-in::after {
		left: 2px; top: 2px; width: 18px; height: 18px; transform: translateX(20px);
	}
	.h-menu-mod-in svg { width: 18px; height: 18px; }
	.h-menu-mod-in svg + svg { margin-left: 2px; }
}