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

@media (min-width: 1240px) {
	body { padding-left: 48px; padding-right: 48px; }
}
@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 --- */
.header {
	display: flex; justify-content: space-between; align-items: center;
	background-color: var(--header-color); color: var(--header-text); height: var(--header-height);
}

/* - Logo - */
.header .logo { height: var(--header-height); }

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

/* - Menu - */
.hm-scroll { min-width: 0; overflow: hidden; position: relative; }

.h-menu-links { text-transform: uppercase; user-select: none; line-height: 24px; }
.h-menu a { text-decoration: none !important; color: inherit !important; white-space: nowrap; }

.h-menu-links a { padding: 10px 12px; }
.h-menu-links a.active { opacity: .8 !important; }
.h-menu-links { font-weight: bold; }
.h-menu-links h1 { all: unset; }

.iswap, .iswap-ic { display: block; width: 24px; height: 24px; }
.iswap { display: block; }
.iswap-ic { position: absolute !important; }

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

.h-tools {
	display: flex; align-items: center; justify-content: flex-end;
	font-size: var(--fs-sm);
}
.h-tools::after { content: ""; flex: 0 0 6px; height: 12px; }

.h-tool-search, .h-tool-login, .h-tool-burger, .notify-drop-btn, .h-tool-notify-preload {
	border: 0 none; background: none;
	display: flex; align-items: center; text-decoration: none !important;
	line-height: 24px; padding: 12px; font-weight: bold;
	color: inherit !important; transition: opacity .15s ease;
}

.h-tool .dropdown-btn {
	display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; cursor: pointer;
	border: 0 none !important; background: none !important; color: var(--link-head-color); position: relative;
}
.h-tool .dropdown-btn > svg, .ic-num svg { display: block; }

.udrop-btn { padding: 0; }

.h-tool-user .iswap { display: none !important; }
.udrop-avatar {
	display: block !important; max-width: 28px; width: 28px; height: 28px;
	border-radius: var(--avatar-head-radius); background-color: var(--noavatar-dark-bg);
	pointer-events: none; transition: var(--opacity-animation);
}
.udrop-btn .iswap { display: none !important; }

.udrop-btn::before {
	content: ""; position: absolute; left: 50%; top: 50%;
	border: 1px solid; border-radius: 50%; width: 34px; height: 34px;
	margin-left: -17px; margin-top: -17px; transform: scale(1.2); opacity: 0;
	pointer-events: none; transition: transform .25s ease, opacity .15s ease;
}
.open > .udrop-btn::before { transform: scale(1); opacity: .4; }

.h-tool-notify.open .iswap-close { opacity: .5; transform: translateY(0); }
.h-tool-notify.open .iswap-ic { opacity: 0; transform: translateY(-6px); }

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

@media (min-width: 992px) {
	.header { position: sticky; top: 0; z-index: 99; }	

	.h-menu { font-size: 15px; display: block !important; overflow: hidden; height: var(--header-height); }

	.h-menu-over { padding: 8px 0; }
	.h-menu-links { display: flex; justify-content: center; }
	.h-menu-links a { display: inline-flex; align-items: center; justify-content: center; transition: color .125s ease; }
	.h-menu-links a:hover, .h-menu-links a.active { color: var(--primary-color-dark) !important; }
	.h-menu-links a[data-num]::after {
		content: attr(data-num); margin-left: 4px;
		background-color: var(--primary-color); color: #fff; font-size: var(--fs-xsm);
		height: 18px; line-height: 18px; padding: 0 6px; border-radius: 8px; font-weight: bold !important;
	}
	.fcoms-menu-new[data-num]::after {
		color: #fff!important;
		background-color: var(--new-label)!important;
	  }
	.h-tool-search:hover, .h-tool-login:hover { opacity: .8; }
	.h-tool-search { display: flex !important; }

	/* - Замена меню в шапке для ПК - */
	html.coms-view .h-menu-foruser { opacity: 0; visibility: hidden; pointer-events: none; }
	html.coms-view .h-menu-coms { display: flex !important; margin-top: -44px; }
	.h-menu-coms a.disabled { display: none; }
}

@media (max-width: 991px) {
	.header { width: 100%; z-index: 101; }
	html.mu .page, html.mm .page, html.mn .page { padding-top: var(--header-height); }
	html.mu .header, html.mm .header, html.mn .header { position: fixed; left: 0; top: 0; min-width: var(--page-minwidth); }

	.h-tool.dropdown { position: static; }
	.h-tool-burger { display: block !important; }
	html.mm .h-tool-burger .iswap-close,
	.h-tool-user.open .iswap-close { opacity: .5; transform: translateY(0); }

	html.mm .h-tool-burger .iswap-ic,
	.h-tool-user.open .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; }
	.h-tool .dropdown-box { position: fixed; bottom: 0; top: var(--header-height); border-radius: 0; }
}

@media (max-width: 991px) {
	html.mm .h-menu { display: flex !important; }

	.h-menu {
		position: absolute; z-index: 100; top: var(--header-height); 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-tools {
		padding: 0 20px 12px 20px; position: relative; z-index: 2;
		background-color: var(--header-color);
		box-shadow: 0 -5px 0 0 var(--header-color);
	}
	.h-menu-tools .langs { margin-top: 12px; display: flex !important; justify-content: space-between; height: 40px; }
	.h-menu-soc, .h-menu-add { display: block !important; }

	.h-menu-over { opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .4s ease; }
	.h-menu-links { column-count: 2; 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; }

	.h-menu-soc { padding: 12px 0; border: var(--border-width) solid var(--border-white); border-left-width: 0; border-right-width: 0; }
}
@media (max-width: 575px) {
	html.mm .h-tool-user, html.mm .h-tool-login,
	html.mm .notification-widget,
	html:not(.mm) .h-menu-mod { display: none !important; }
}
@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 { font-size: 18px; }
	.h-menu-add { display: flex !important; }
	.h-menu-add a:not(:last-child) { margin-right: 20px; }
}
@media (max-width: 459px) {
	.h-menu { position: fixed; bottom: 0; }
	.h-menu-add a { display: block; opacity: .8; white-space: nowrap; }
}

/* - qSearch - */
.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;
	line-height: 24px !important; height: 44px !important;
}
.qsearch-field-btn {
	transition: var(--opacity-animation); padding: 10px !important; opacity: .5;
	text-transform: uppercase; font-weight: bold; font-size: var(--fs-sm);
}

.qsearch-field-input { flex: 1 1 auto; padding: 10px 16px !important; }
.qsearch-field-line {
	position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 22px; pointer-events: none;
	border: 1px solid; opacity: .125; transition: var(--opacity-animation);
}
.qsearch-field-input:focus ~ .qsearch-field-line { opacity: .3; }

@media (min-width: 992px) {
	.h-menu-tools { padding: 8px 0; }
	.h-menu-tools, .h-menu-over { transform: translateY(-100%); transition: transform .3s ease, opacity .2s ease; }
	html.qs .h-menu-tools, html.qs .h-menu-over { transform: translateY(0%); }
	html.qs .h-menu-over, html:not(.qs) .h-menu-tools { opacity: 0; }
	.qsearch-field-btn { padding: 10px 16px !important; opacity: 1; }
	.qsearch-field-btn::before { content: attr(title); }
	.qsearch-field-btn svg { display: none; }
	.qsearch-field-btn:hover { opacity: .8; }

	html.qs .h-tool-search .iswap-close { opacity: 1; transform: translateY(0); }
	html.qs .h-tool-search .iswap-ic { opacity: 0; transform: translateY(-6px); }
}

/* - Dark Mod Switch - */
.h-menu-mod {
	display: flex; align-items: center; height: 48px; padding: 0 8px; cursor: pointer;
	border: 0 none !important; background: none !important;
}
.h-menu-mod-in {
	display: flex; position: relative;
	border: 0 none; background-color: #FFFFFF1F; 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 .3s ease;
}
.h-menu-mod-in svg { fill: currentColor; pointer-events: none; }
.h-menu-mod-in svg.mod-dark { fill: var(--primary-color-dark); }

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

@media (max-width: 991px) {
	.h-menu-mod-in { width: 60px; height: 32px; padding: 4px; }
	.h-menu-mod-in::after {
		left: 4px; top: 4px; 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: 4px; }
}
@media (min-width: 992px) {
	.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; }
}