/* Ilim Theme 0.8.1 — isolated header stylesheet.
   Loaded after all default-theme and legacy Ilim styles. */

body.ilim-custom-header .ilim-header,
body.ilim-custom-header header.ilim-header.pkp_structure_head {
	position: relative !important;
	z-index: 1000 !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #021a37 !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.ilim-custom-header .ilim-header *,
body.ilim-custom-header .ilim-header *::before,
body.ilim-custom-header .ilim-header *::after {
	box-sizing: border-box;
}

body.ilim-custom-header .ilim-header__top {
	display: block !important;
	width: 100% !important;
	background:
		radial-gradient(circle at 15% 0%, rgba(23,91,151,.18), transparent 35rem),
		linear-gradient(180deg,#01162f,#022344) !important;
}

body.ilim-custom-header .ilim-header__container {
	display: flex !important;
	width: min(1400px, calc(100% - 48px)) !important;
	max-width: 1400px !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-header__top > .ilim-header__container {
	align-items: center !important;
	justify-content: space-between !important;
	gap: 32px !important;
	min-height: 112px !important;
}

body.ilim-custom-header .ilim-header__brand {
	display: flex !important;
	flex: 1 1 auto !important;
	align-items: center !important;
	gap: 18px !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #fff !important;
	text-decoration: none !important;
}

body.ilim-custom-header .ilim-header__logo {
	display: block !important;
	flex: 0 0 145px !important;
	width: 145px !important;
	max-width: 145px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	filter: drop-shadow(0 8px 18px rgba(0,0,0,.24));
}

body.ilim-custom-header .ilim-header__identity {
	display: grid !important;
	flex: 0 1 520px !important;
	gap: 4px !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-header__identity strong {
	display: block !important;
	max-width: 520px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: #fff !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: 26px !important;
	font-weight: 700 !important;
	line-height: 1.05 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
}

body.ilim-custom-header .ilim-header__identity small {
	display: block !important;
	margin: 0 !important;
	color: #e4aa34 !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	text-transform: uppercase !important;
}

body.ilim-custom-header .ilim-header__identity em {
	display: block !important;
	margin: 0 !important;
	color: rgba(255,255,255,.82) !important;
	font-size: 10px !important;
	font-style: normal !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-transform: uppercase !important;
}

body.ilim-custom-header .ilim-header__tools {
	position: static !important;
	display: flex !important;
	flex: 0 0 auto !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 18px !important;
	width: auto !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-language-switcher {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-language-switcher a {
	position: relative !important;
	display: inline-block !important;
	padding: 7px 0 !important;
	color: rgba(255,255,255,.9) !important;
	font-size: 12px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

body.ilim-custom-header .ilim-language-switcher a::after {
	content: "" !important;
	position: absolute !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	height: 2px !important;
	background: #e4aa34 !important;
	transform: scaleX(0);
}

body.ilim-custom-header .ilim-language-switcher a.is-active::after,
body.ilim-custom-header .ilim-language-switcher a:hover::after,
body.ilim-custom-header .ilim-language-switcher a:focus::after {
	transform: scaleX(1);
}

body.ilim-custom-header .ilim-header__tool-link {
	display: flex !important;
	align-items: center !important;
	gap: 7px !important;
	margin: 0 !important;
	padding: 5px 0 5px 16px !important;
	color: #fff !important;
	border-left: 1px solid rgba(255,255,255,.13) !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
}

body.ilim-custom-header .ilim-header__tool-link .fa {
	color: #e4aa34 !important;
	font-size: 15px !important;
}

body.ilim-custom-header .ilim-header__user,
body.ilim-custom-header .ilim-header__user .pkp_navigation_user {
	position: static !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	display: flex !important;
	align-items: center !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-header__user .pkp_navigation_user > li {
	position: relative !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-header__user .pkp_navigation_user > li > a {
	display: flex !important;
	align-items: center !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 7px 0 !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
}

body.ilim-custom-header .ilim-header__user .pkp_navigation_user > li > a::before {
	content: "\f007" !important;
	margin-right: 7px !important;
	color: #e4aa34 !important;
	font-family: FontAwesome !important;
	font-size: 15px !important;
	font-weight: normal !important;
}

body.ilim-custom-header .ilim-header__nav {
	position: relative !important;
	z-index: 20 !important;
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: linear-gradient(90deg,#052c56,#073b70) !important;
	border-top: 1px solid rgba(255,255,255,.06) !important;
}

body.ilim-custom-header .ilim-header__nav > .ilim-header__nav-inner {
	display: flex !important;
	align-items: stretch !important;
	justify-content: flex-end !important;
	min-height: 52px !important;
}

body.ilim-custom-header .ilim-header__primary {
	display: flex !important;
	flex: 0 1 auto !important;
	align-items: stretch !important;
	justify-content: flex-end !important;
	width: auto !important;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary {
	display: flex !important;
	align-items: stretch !important;
	justify-content: flex-end !important;
	gap: 2px !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li {
	position: relative !important;
	display: flex !important;
	align-items: stretch !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	min-height: 52px !important;
	margin: 0 !important;
	padding: 10px 16px !important;
	color: #fff !important;
	background: transparent !important;
	border: 0 !important;
	font-size: 11px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a::after {
	content: "" !important;
	position: absolute !important;
	right: 16px !important;
	bottom: 0 !important;
	left: 16px !important;
	height: 3px !important;
	background: #e4aa34 !important;
	transform: scaleX(0);
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li:hover > a::after,
body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li:focus-within > a::after,
body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a:hover::after,
body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a:focus::after {
	transform: scaleX(1);
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > ul {
	top: 100% !important;
	left: 0 !important;
	min-width: 230px !important;
	margin: 0 !important;
	padding: 7px 0 !important;
	background: #fff !important;
	border: 1px solid #dce2ea !important;
	border-radius: 0 0 8px 8px !important;
	box-shadow: 0 18px 38px rgba(1,20,44,.2) !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > ul a {
	display: block !important;
	padding: 10px 16px !important;
	color: #18304f !important;
	font-size: 12px !important;
	text-decoration: none !important;
	white-space: normal !important;
}

body.ilim-custom-header .ilim-header__toggle,
body.ilim-custom-header .ilim-header__mobile-tools {
	display: none !important;
}

/* Full-width homepage wrappers */
body.pkp_page_index.pkp_op_index .pkp_structure_content {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.pkp_page_index.pkp_op_index .pkp_structure_main {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

body.pkp_page_index.pkp_op_index .ilim-v7-hero {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 0 !important;
}

@media (max-width: 1100px) {
	body.ilim-custom-header .ilim-header__container {
		width: calc(100% - 32px) !important;
	}

	body.ilim-custom-header .ilim-header__logo {
		flex-basis: 105px !important;
		width: 105px !important;
		max-width: 105px !important;
	}

	body.ilim-custom-header .ilim-header__identity strong {
		max-width: 390px !important;
		font-size: 20px !important;
	}

	body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a {
		padding-right: 11px !important;
		padding-left: 11px !important;
		font-size: 10px !important;
	}
}

@media (max-width: 900px) {
	body.ilim-custom-header .ilim-header__top > .ilim-header__container {
		min-height: 82px !important;
	}

	body.ilim-custom-header .ilim-header__logo {
		flex-basis: 80px !important;
		width: 80px !important;
		max-width: 80px !important;
	}

	body.ilim-custom-header .ilim-header__identity strong {
		font-size: 16px !important;
	}

	body.ilim-custom-header .ilim-header__identity small,
	body.ilim-custom-header .ilim-header__identity em,
	body.ilim-custom-header .ilim-header__tools {
		display: none !important;
	}

	body.ilim-custom-header .ilim-header__toggle {
		position: relative !important;
		display: block !important;
		flex: 0 0 42px !important;
		width: 42px !important;
		height: 42px !important;
		margin-left: auto !important;
		overflow: hidden !important;
		color: transparent !important;
		background: transparent !important;
		border: 1px solid rgba(255,255,255,.3) !important;
		border-radius: 6px !important;
	}

	body.ilim-custom-header .ilim-header__nav {
		display: none !important;
	}

	body.ilim-custom-header .ilim-header__nav.is_open,
	body.ilim-custom-header .ilim-header__nav.pkp_site_nav_menu--isOpen {
		display: block !important;
	}

	body.ilim-custom-header .ilim-header__nav > .ilim-header__nav-inner,
	body.ilim-custom-header .ilim-header__primary,
	body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary {
		display: block !important;
		width: 100% !important;
	}

	body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li {
		display: block !important;
		width: 100% !important;
	}

	body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a {
		min-height: 44px !important;
		padding: 10px 16px !important;
	}

	body.ilim-custom-header .ilim-header__mobile-tools {
		display: block !important;
		padding: 12px 16px !important;
	}
}


/* =========================================================
   Ilim Theme 0.8.2 — directly linked final header geometry
   ========================================================= */

body.ilim-custom-header {
	overflow-x: hidden;
}

body.ilim-custom-header .ilim-header__container {
	width: min(1500px, calc(100% - 40px)) !important;
	max-width: 1500px !important;
}

body.ilim-custom-header .ilim-header__top > .ilim-header__container {
	min-height: 118px !important;
}

body.ilim-custom-header .ilim-header__brand {
	max-width: 760px !important;
}

body.ilim-custom-header .ilim-header__logo {
	flex: 0 0 150px !important;
	width: 150px !important;
	max-width: 150px !important;
}

body.ilim-custom-header .ilim-header__identity {
	flex: 0 1 570px !important;
	max-width: 570px !important;
}

body.ilim-custom-header .ilim-header__identity strong {
	max-width: 570px !important;
	font-size: 28px !important;
	line-height: 1.04 !important;
}

body.ilim-custom-header .ilim-header__tools {
	min-width: max-content !important;
}

body.ilim-custom-header .ilim-header__nav > .ilim-header__nav-inner {
	justify-content: flex-end !important;
	min-height: 54px !important;
}

body.ilim-custom-header .ilim-header__primary {
	flex: 0 0 auto !important;
	max-width: 100% !important;
	overflow: visible !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary {
	flex-wrap: nowrap !important;
	width: auto !important;
	max-width: none !important;
	overflow: visible !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: none !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a {
	min-height: 54px !important;
	padding-right: 18px !important;
	padding-left: 18px !important;
	font-size: 12px !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a br {
	display: none !important;
}

body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a::after {
	right: 18px !important;
	left: 18px !important;
}

/* Reset inherited constraints that can collapse the custom brand. */
body.ilim-custom-header .ilim-header__brand,
body.ilim-custom-header .ilim-header__brand span,
body.ilim-custom-header .ilim-header__brand strong,
body.ilim-custom-header .ilim-header__brand small,
body.ilim-custom-header .ilim-header__brand em {
	position: static !important;
	float: none !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	clip: auto !important;
	transform: none !important;
}

body.ilim-custom-header .ilim-header__brand .ilim-header__logo {
	width: 150px !important;
	height: auto !important;
}

body.ilim-custom-header .ilim-header__identity {
	display: grid !important;
	width: 570px !important;
}

body.ilim-custom-header .ilim-header__identity strong {
	display: block !important;
	width: 100% !important;
}

/* Prevent old OJS site-name blocks from reserving or overlapping space. */
body.ilim-custom-header .pkp_site_name_wrapper,
body.ilim-custom-header .pkp_site_name,
body.ilim-custom-header .pkp_navigation_primary_row,
body.ilim-custom-header .pkp_head_wrapper {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Desktop menu should use the full available width. */
@media (min-width: 901px) {
	body.ilim-custom-header .ilim-header__nav-inner {
		width: min(1500px, calc(100% - 40px)) !important;
		max-width: 1500px !important;
	}

	body.ilim-custom-header .ilim-header__primary {
		margin-left: auto !important;
	}

	body.ilim-custom-header .ilim-header__toggle,
	body.ilim-custom-header .ilim-header__mobile-tools {
		display: none !important;
	}
}

@media (max-width: 1320px) and (min-width: 901px) {
	body.ilim-custom-header .ilim-header__container {
		width: calc(100% - 28px) !important;
	}

	body.ilim-custom-header .ilim-header__logo {
		flex-basis: 115px !important;
		width: 115px !important;
		max-width: 115px !important;
	}

	body.ilim-custom-header .ilim-header__identity {
		flex-basis: 430px !important;
		width: 430px !important;
		max-width: 430px !important;
	}

	body.ilim-custom-header .ilim-header__identity strong {
		font-size: 21px !important;
	}

	body.ilim-custom-header .ilim-header__identity small {
		font-size: 10px !important;
	}

	body.ilim-custom-header .ilim-header__primary .pkp_navigation_primary > li > a {
		padding-right: 12px !important;
		padding-left: 12px !important;
		font-size: 10px !important;
	}
}


/* =========================================================
   Ilim Theme 0.9 — configurable multilingual journal identity
   ========================================================= */

body.ilim-custom-header .ilim-header__identity {
	flex: 0 1 620px !important;
	width: min(620px, 42vw) !important;
	max-width: 620px !important;
}

body.ilim-custom-header .ilim-header__identity strong {
	width: 100% !important;
	max-width: 620px !important;
	font-size: clamp(22px, 1.75vw, 29px) !important;
	line-height: 1.03 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	text-wrap: balance;
}

body.ilim-custom-header .ilim-header__identity small {
	max-width: 540px !important;
	margin-top: 3px !important;
	color: #e4aa34 !important;
	font-size: 12px !important;
	line-height: 1.25 !important;
	white-space: normal !important;
}

body.ilim-custom-header .ilim-header__identity em {
	margin-top: 2px !important;
	font-size: 10px !important;
}

@media (max-width: 1320px) and (min-width: 901px) {
	body.ilim-custom-header .ilim-header__identity {
		flex-basis: 490px !important;
		width: min(490px, 43vw) !important;
		max-width: 490px !important;
	}

	body.ilim-custom-header .ilim-header__identity strong {
		font-size: 21px !important;
	}
}
/* =========================================================
   Стабильная сетка Hero для всех языков
   ========================================================= */

/*
 * Большие экраны:
 * текст слева, сведения о журнале справа.
 */
@media screen and (min-width: 1200px) {

    body.pkp_page_index.pkp_op_index .ilim-v7-hero__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 760px) 320px !important;
        grid-template-areas: "hero-content hero-info" !important;

        justify-content: space-between !important;
        align-items: center !important;

        width: min(1400px, calc(100% - 96px)) !important;
        max-width: 1400px !important;
        min-height: 400px !important;

        margin: 0 auto !important;
        padding-top: 36px !important;
        padding-bottom: 72px !important;

        column-gap: 48px !important;
        row-gap: 0 !important;
    }

    body.pkp_page_index.pkp_op_index .ilim-v7-hero__content {
        grid-area: hero-content !important;
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 760px !important;

        margin: 0 !important;

        justify-self: start !important;
        align-self: center !important;
    }

    body.pkp_page_index.pkp_op_index .ilim-v7-journal-info {
        grid-area: hero-info !important;
        grid-column: 2 !important;
        grid-row: 1 !important;

        position: static !important;
        float: none !important;
        clear: none !important;

        display: block !important;

        width: 320px !important;
        min-width: 320px !important;
        max-width: 320px !important;

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

        justify-self: end !important;
        align-self: center !important;

        transform: none !important;
    }
}

/*
 * Планшеты и небольшие ноутбуки:
 * карточка располагается под текстом на всю ширину.
 */
@media screen and (min-width: 768px) and (max-width: 1199px) {

    body.pkp_page_index.pkp_op_index .ilim-v7-hero__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "hero-content"
            "hero-info" !important;

        width: calc(100% - 64px) !important;
        max-width: 1000px !important;

        margin: 0 auto !important;
        padding-top: 34px !important;
        padding-bottom: 70px !important;

        gap: 24px !important;
    }

    body.pkp_page_index.pkp_op_index .ilim-v7-hero__content {
        grid-area: hero-content !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 760px !important;

        margin: 0 !important;
    }

    body.pkp_page_index.pkp_op_index .ilim-v7-journal-info {
        grid-area: hero-info !important;

        position: static !important;
        float: none !important;

        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 760px !important;

        margin: 0 !important;
        padding: 14px 18px !important;

        justify-self: start !important;
        transform: none !important;
    }

    body.pkp_page_index.pkp_op_index
    .ilim-v7-journal-info__row {
        min-width: 0 !important;
    }

    body.pkp_page_index.pkp_op_index
    .ilim-v7-hero__content h1 {
        font-size: clamp(34px, 5vw, 50px) !important;
        line-height: 1.04 !important;
    }
}

/*
 * Телефоны:
 * все блоки идут друг под другом.
 */
@media screen and (max-width: 767px) {

    body.pkp_page_index.pkp_op_index .ilim-v7-hero__inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas:
            "hero-content"
            "hero-info" !important;

        width: calc(100% - 32px) !important;

        margin: 0 auto !important;
        padding-top: 26px !important;
        padding-bottom: 62px !important;

        gap: 22px !important;
    }

    body.pkp_page_index.pkp_op_index .ilim-v7-hero__content {
        grid-area: hero-content !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        margin: 0 !important;
    }

    body.pkp_page_index.pkp_op_index .ilim-v7-journal-info {
        grid-area: hero-info !important;

        position: static !important;
        float: none !important;

        display: block !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 14px 16px !important;

        transform: none !important;
    }

    body.pkp_page_index.pkp_op_index
    .ilim-v7-hero__content h1 {
        font-size: clamp(29px, 9vw, 42px) !important;
        line-height: 1.04 !important;
    }
}