/* Общая шапка. Боковые отступы задаёт только существующий .container. */
.sis-header-slot {
	height: 172px;
}
.sis-header {
	position: fixed;
	inset: var(--sis-admin-offset, 0px) var(--sis-scrollbar-gap, 0px) auto 0;
	z-index: 1000;
	background: #fff;
	color: #302e2b;
	font: 400 16px/24px Inter, sans-serif;
}
.admin-bar .sis-header {
	top: var(--sis-admin-offset, 32px);
}
.sis-header *, .sis-header *::before, .sis-header *::after {
	box-sizing: border-box;
}
.sis-header a {
	text-decoration: none;
	transition: 0.3s;
}
.sis-header a:hover {
	text-decoration: none;
}
.sis-header button, .sis-header summary {
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
.sis-header button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
}
.sis-header button:not(:hover):not(:active) {
	background: transparent;
	color: inherit;
}
.sis-header button:hover, .sis-header button:focus,
.sis-header button:active {
	background: transparent;
	color: inherit;
	box-shadow: none;
}
.sis-header a:focus-visible, .sis-header button:focus-visible,
.sis-header summary:focus-visible {
	outline: 2px solid #574f48;
	outline-offset: 3px;
}
.sis-header picture, .sis-header picture img {
	display: block;
}
.sis-header picture img {
	width: auto;
	height: auto;
	max-width: none;
}
.sis-header__brand-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	height: 117px;
	padding: 24px 0 8px;
	border-bottom: 1px solid #d9d3c9;
}
.sis-header.is-compact .sis-header__brand-row {
	height: 101px;
	padding-top: 8px;
}
.sis-header__brand {
	display: block;
	justify-self: center;
}
.sis-header__institute {
	display: flex;
	align-items: flex-start;
	gap: 9.143px;
	justify-self: end;
}
.sis-header__institute > picture {
	padding-top: 2px;
}
.sis-header__external {
	display: grid;
	place-items: center;
	padding: 4.571px;
	border-radius: 50%;
	background: #ae3629;
}
.sis-header__institute:hover .sis-header__external {
	background: #a5231b;
}
.sis-header__desktop-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	justify-self: start;
	align-self: stretch;
	min-width: 0;
	width: 100%;
}
.sis-header__login, .sis-header__account {color: #302E2B}
.sis-header__login, .sis-header__account > summary {
	display: flex;
	align-items: center;
	min-height: 40px;
	font-weight: 500;
}
.sis-header__issue {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	color: #c12a21;
	white-space: nowrap;
	font-weight: 500;
}
.sis-header__issue:hover,
.sis-header__login:hover,
.sis-header__account-links a:hover {
	color: #c12a21;
}
.sis-header__issue img {
	flex: none;
	transition: 0.3s;
}
.sis-header__issue:hover img {
	transform: translateX(4px);
}
.sis-header__account {
	position: relative;
}
.sis-header__account > summary {
	gap: 8px;
	list-style: none;
}
.sis-header__account > summary::-webkit-details-marker {
	display: none;
}
.sis-header .sis-header__avatar {
	display: block;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
}
.sis-header__profile-icon { display: block; flex: none; width: 20px; height: 20px; }
.sis-header__account-links {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 2;
	width: 304px;
	max-width: calc(100vw - 32px);
	padding: 12px;
	border: 1px solid #d8d3cc;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 8px 24px #302e2b1a;
}
.sis-header__account-links a {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 8px;
	font-size: 16px;
	line-height: 24px;
	color: #302e2b;
}
.sis-header__account-name { display: block; padding: 0 4px 12px; font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.sis-header__account-links .sis-header__logout { color: #c12a21; }
.sis-header__bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 55px;
	padding-top: 3px;
}
.sis-header__panel, .sis-header__panel-body {
	display: contents;
}
.sis-header__panel-heading, .sis-header__mobile-actions,
.sis-header .sis-header__toggle {
	display: none;
}
.sis-header__nav {
	flex: none;
}
.sis-header .sis-header__menu {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sis-header .sis-header__menu > li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sis-header__menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 52px;
	padding: 0;
	color: #302e2b;
	font: 600 24px/32px "Yanone Kaffeesatz", sans-serif;
	white-space: nowrap;
}
.sis-header__menu > li > a:hover,
.sis-header__menu > .current-menu-item > a,
.sis-header__menu > .current_page_item > a,
.sis-header__menu > .current-menu-ancestor > a,
.sis-header__menu > .sis-header__menu-item--active > a {
	color: #c12a21;
}
.sis-header__menu > li > a::before {
	position: absolute;
	bottom: 4px;
	left: 0;
	width: 28px;
	height: 4px;
	border-radius: 2px;
	background: #c12a21;
	content: "";
	opacity: 0;
}
.sis-header__menu > li > a:hover::before,
.sis-header__menu > .current-menu-item > a::before,
.sis-header__menu > .current_page_item > a::before,
.sis-header__menu > .current-menu-ancestor > a::before,
.sis-header__menu > .sis-header__menu-item--active > a::before {
	opacity: 1;
}
.sis-header__search {
	position: relative;
	flex: 0 1 320px;
	min-width: 200px;
	height: 44px;
	margin: 0;
	border: 1px solid #bc736d;
	border-radius: 8px;
	background: #fff;
}
.sis-header__search:focus-within {
	border-color: #574f48;
	box-shadow: inset 0 0 0 1px #574f48;
}
.sis-header .sis-header__search input {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 10px 48px 10px 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #302e2b;
	font: 400 16px/24px Inter, sans-serif;
	outline: none;
	box-shadow: none;
}
.sis-header__search input::placeholder {
	color: #72716f;
	opacity: 1;
}
.sis-header .sis-header__search button {
	position: absolute;
	inset: 0 0 0 auto;
	width: 44px;
	border-radius: 8px;
}
.sis-header__search input::-webkit-search-cancel-button {
	display: none;
}
.has-sis-header {
	scroll-padding-top: calc(var(--sis-header-bottom, 172px) + 16px);
}
@media (min-width: 961px) {
	.has-sis-header .side-panel {
		top: calc(var(--sis-header-bottom, 172px) + 16px);
	}
}
/* Временная ссылка с главной, перенесённая из старой шапки. */
.home-subscribe {
	position: fixed;
	top: calc(50% + 73px);
	right: 30px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 102px;
	height: 102px;
	border-radius: 50%;
	background: #eac865;
	color: #302e2b;
	font: 600 13px/19px Inter, sans-serif;
	text-align: center;
	text-decoration: none;
}
.home-subscribe:hover {
	color: #302e2b;
	background: #f1d47c;
	text-decoration: none;
}
.home-subscribe:focus-visible {
	outline: 2px solid #574f48;
	outline-offset: 4px;
}
@media (max-width: 1100px) {
	.sis-header-slot {
		height: 164px;
	}
	.sis-header__brand-row {
		grid-template-columns: auto auto;
		justify-content: space-between;
		height: 89px;
		padding: 20px 0 15px;
	}
	.sis-header.is-compact .sis-header__brand-row {
		height: 73px;
		padding-top: 4px;
	}
	.sis-header__brand {
		justify-self: start;
	}
	.sis-header__institute {
		gap: 6.857px;
	}
	.sis-header__institute > picture {
		padding-top: 1.5px;
	}
	.sis-header__external {
		padding: 3.429px;
	}
	.sis-header__desktop-actions {
		display: none;
	}
	.sis-header__bottom-row {
		gap: 16px;
		min-height: 75px;
		padding: 15px 0 12px;
	}
	.sis-header__search {
		flex: 1 1 auto;
		min-width: 0;
		height: 48px;
	}
	.sis-header .sis-header__toggle {
		display: inline-flex;
		flex: 0 0 128px;
		gap: 12px;
		height: 48px;
		font-weight: 500;
	}
	.sis-header__burger {
		display: grid;
		place-items: center;
		width: 20px;
		height: 20px;
	}
	.sis-header__panel {
		position: fixed;
		top: calc(var(--sis-header-bottom, 164px) + 16px);
		left: 50%;
		z-index: 2;
		display: none;
		flex-direction: column;
		width: min(440px, var(--sis-header-content-width, calc(100% - 32px)));
		max-height: min(504px, calc(100dvh - var(--sis-header-bottom, 164px) - 32px));
		overflow: hidden;
		border: 1px solid #d8d3cc;
		border-radius: 12px;
		background: #fff;
		transform: translateX(-50%);
	}
	.sis-header.is-menu-open .sis-header__panel {
		display: flex;
	}
	.sis-header__panel-heading {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: space-between;
		height: 55px;
		padding: 7px 15px 4px 19px;
	}
	.sis-header__panel-heading h2 {
		margin: 0;
		color: #302e2b;
		font: 700 32px/40px "Yanone Kaffeesatz", sans-serif;
		text-transform: none;
		letter-spacing: normal;
	}
	.sis-header .sis-header__close {
		width: 44px;
		height: 44px;
	}
	.sis-header__panel-body {
		display: block;
		padding: 0 15px 15px;
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	.sis-header__mobile-actions {
		display: block;
	}
	.sis-header__mobile-actions::after {
		display: block;
		height: 1px;
		margin: 4px 8px 7px;
		background: #d6d2cd;
		content: "";
	}
	.sis-header__login, .sis-header__account > summary, .sis-header__issue {
		min-height: 44px;
		padding: 8px;
	}
	.sis-header__account-links {
		position: static;
		width: auto;
		max-width: none;
		margin: 0 8px 8px;
		box-shadow: none;
	}
	.sis-header .sis-header__menu {
		display: grid;
		gap: 4px;
	}
	.sis-header__menu > li > a {
		min-height: 44px;
		padding: 8px 32px 8px 8px;
		font-weight: 700;
		font-size: 20px;
		line-height: 28px;
		white-space: normal;
	}
	.sis-header__menu > li > a::before {
		display: none;
	}
	.sis-header__menu > li > a::after {
		position: absolute;
		top: 14px;
		right: 8px;
		width: 16px;
		height: 16px;
		background: url("../images/header/menu-chevron.svg") center no-repeat;
		content: "";
	}
	.sis-header__backdrop:not([hidden]) {
		position: fixed;
		inset: var(--sis-header-bottom, 164px) 0 0;
		display: block;
		z-index: 1;
		background: transparent;
	}
}
@media (max-width: 782px) {
	.admin-bar .sis-header {
		top: var(--sis-admin-offset, 46px);
	}
}
@media (max-width: 576px) {
	.sis-header__brand-row {
		padding: 32px 0 23px;
	}
	.sis-header.is-compact .sis-header__brand-row {
		padding-top: 16px;
	}
	.sis-header__institute {
		gap: 5.333px;
	}
	.sis-header__institute > picture {
		padding-top: 1.167px;
	}
	.sis-header__external {
		padding: 2.667px;
	}
	.sis-header__bottom-row {
		gap: 12px;
	}
	.sis-header .sis-header__toggle {
		flex-basis: 84px;
		gap: 8px;
	}
	.home-subscribe {
		top: calc(50% + 61px);
		right: 20px;
		width: 82px;
		height: 82px;
		font-size: 11px;
		line-height: 16px;
	}
}
@media (max-width: 359px) {
	.sis-header__brand-row {
		position: relative;
		display: block;
		padding: 0;
	}
	.sis-header__brand {
		position: absolute;
		top: 8px;
		left: 0;
	}
	.sis-header__institute {
		position: absolute;
		top: 44px;
		right: 0;
	}
	.sis-header.is-compact .sis-header__brand {
		top: 4px;
	}
	.sis-header.is-compact .sis-header__institute {
		top: 36px;
	}
}
