/* =====================================================================
   FableGame: шапка, выпадающие меню, профиль, обложка, поиск и подвал
   Очищенная версия без дублирующих правил и каскадных переопределений.
   ===================================================================== */


/* =====================================================================
   1. ВЕРХНЯЯ ПАНЕЛЬ
   ===================================================================== */

.TOP-MENU {
	position: relative;
	z-index: 1000;
	display: grid;
	grid-area: TOP-MENU;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	font-family: "Open Sans", Arial, sans-serif;
}

.sandwich,
.profile {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	color: inherit;
	background: transparent;
	border: 0;
	cursor: pointer;
	line-height: 1;
	transition:
		color 0.18s ease,
		background-color 0.18s ease,
		transform 0.18s ease;
}

.sandwich {
	grid-area: sandwich;
	font-size: 1.25em;
}

.sandwich:active,
.profile:active {
	transform: scale(0.96);
}


/* =====================================================================
   2. ЛОГОТИП
   ===================================================================== */

.headline {
	grid-area: headline;
	display: flex;
	align-items: center;
	min-width: 0;
	font-family: "Russo One", "Open Sans", sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.015em;
	white-space: nowrap;
}

.headline a {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.headline svg {
	flex: 0 0 auto;
	width: 0.92em;
	height: 0.92em;
	margin-right: 0.42em;
	color: inherit;
	transition:
		transform 0.18s ease,
		opacity 0.18s ease;
}

.headline svg path {
	fill: currentColor;
}

.headline a:hover svg {
	transform: rotate(-4deg) scale(1.04);
}


/* =====================================================================
   3. ОСНОВНАЯ НАВИГАЦИЯ
   ===================================================================== */

.top-menu-list {
	grid-area: top-menu-list;
	display: flex;
	align-items: stretch;
	min-width: 0;
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: "Open Sans", Arial, sans-serif;
	list-style: none;
}

.top-menu-list > li {
	position: relative;
	display: flex;
	align-items: stretch;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.top-menu-list > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 1em;
	color: inherit;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 0.78em;
	font-style: normal;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.025em;
	text-decoration: none;
	white-space: nowrap;
	transition:
		color 0.18s ease,
		background-color 0.18s ease;
}

.top-menu-list > li > a::after {
	content: "▼";
	margin-left: 0.38em;
	font-size: 0.65em;
	line-height: 1;
	opacity: 0.72;
}


/* =====================================================================
   4. ВЫПАДАЮЩИЕ МЕНЮ
   ===================================================================== */

.menu-dropdown,
.sandwich-dropdown,
.profile-dropdown {
	position: absolute;
	z-index: 1100;
	display: block;
	height: auto;
	margin: 0;
	padding: 0.3em;
	font-family: "Open Sans", Arial, sans-serif;
	font-style: normal;
	font-weight: 400;
	line-height: 1.25;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transform: translateY(0.25em);
	transition:
		opacity 0.15s ease,
		transform 0.15s ease,
		visibility 0s linear 0.15s;
}

/*
	Тематические меню содержат много пунктов, поэтому на десктопе
	они разбиваются на две колонки вместо одной высокой колонки.
*/
.menu-dropdown {
	top: 100%;
	left: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.08em 0.25em;
	width: min(27em, calc(100vw - 2em));
}

.top-menu-fable3 > .menu-dropdown,
.top-menu-other > .menu-dropdown,
.top-menu-modding > .menu-dropdown {
	right: 0;
	left: auto;
}

.sandwich-dropdown {
	top: 100%;
	left: 0;
	width: 14.5em;
}

.profile-dropdown {
	top: 100%;
	right: 0;
	width: 15.5em;
	padding: 0.45em;
}

.top-menu-list > li:hover > .menu-dropdown,
.top-menu-list > li:focus-within > .menu-dropdown,
.menu-dropdown:hover,
.menu-dropdown:focus-within,
.sandwich:hover + .sandwich-dropdown,
.sandwich:focus + .sandwich-dropdown,
.sandwich-dropdown:hover,
.sandwich-dropdown:focus-within,
.profile:hover + .profile-dropdown,
.profile:focus + .profile-dropdown,
.profile-dropdown:hover,
.profile-dropdown:focus-within {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
	transition-delay: 0s;
}

.menu-dropdown > a,
.sandwich-dropdown > a,
.profile-dropdown > p:nth-child(n+3) > a {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 1.85em;
	padding: 0.32em 0.55em;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 0.8em;
	font-weight: 500;
	line-height: 1.22;
	text-decoration: none;
	border-radius: 0.22em;
	break-inside: avoid;
	transition:
		color 0.15s ease,
		background-color 0.15s ease;
}


/* =====================================================================
   5. ПРОФИЛЬ
   ===================================================================== */

.profile {
	grid-area: profile;
}

.profile svg,
.profile img {
	display: block;
	flex: 0 0 1.8em;
	width: 1.8em;
	height: 1.8em;
}

.profile #avatar,
.profile-dropdown img {
	object-fit: cover;
	border-radius: 50%;
}

.profile-dropdown p {
	margin: 0;
}

/* Аватар */
.profile-dropdown > p:first-child {
	display: flex;
	justify-content: center;
	padding: 0.4em 0.4em 0.18em;
}

.profile-dropdown > p:first-child > img {
	width: 4em;
	height: 4em;
}

/* Ник пользователя — отдельная шапка меню */
.profile-dropdown > p:nth-child(2) {
	margin: 0 0.35em 0.45em;
	padding: 0.3em 0.45em 0.7em;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 1em;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	border-bottom: 1px solid transparent;
}

.profile-dropdown > p:nth-child(2) > a {
	display: inline;
	width: auto;
	min-height: 0;
	padding: 0;
	font: inherit;
	line-height: inherit;
	text-decoration: none;
	border-radius: 0;
}

/* Обычные пункты меню */
.profile-dropdown > p:nth-child(n+3) {
	margin: 0;
}

/*
	Пункт «Личные сообщения» и счётчик непрочитанных.
	У uCoz ссылка и текст в скобках находятся внутри одного <p>,
	поэтому уменьшаем родительский текст и возвращаем ссылке
	обычный размер пункта меню.
*/
.profile-dropdown:has(> p:nth-child(5)) > p:nth-child(4) {
	margin: 0 0 0.3em;
	padding: 0 0.9em 0.28em;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 0.68em;
	font-style: normal;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-align: left;
}

.profile-dropdown:has(> p:nth-child(5)) > p:nth-child(4) > a {
	width: calc(100% + 1.8em);
	margin: 0 -0.9em 0.08em;
	font-size: 1.265em;
	letter-spacing: 0;
}

.profile .tsst1 {
	stroke-width: 1px;
}

.profile .tsst2,
.profile .tsdt2 {
	stroke-width: 20px;
}

.profile .tsst3 {
	stroke-width: 45px;
}

.profile .tsst4,
.profile .tsdt4 {
	stroke-width: 22px;
}

.profile .tsdt1 {
	stroke-width: 8px;
}

.profile .tsdt3 {
	stroke-width: 65px;
}


/* =====================================================================
   6. ОБЛОЖКА
   ===================================================================== */

#SITE-COVER {
	position: relative;
	grid-area: SITE-COVER;
	width: 100%;
	min-width: 0;
	background-image: url("/images/bg.jpg");
	background-size: cover;
	background-position: center 62%;
	background-repeat: no-repeat;
	overflow: hidden;
}


/* =====================================================================
   7. ПОИСК
   ===================================================================== */

#SITE-COVER > form {
	position: absolute;
	display: flex;
	align-items: stretch;
	margin: 0;
	border: 0;
	border-radius: 0.32em;
	overflow: hidden;
}

#SITE-COVER > form > .search-form-1st-class,
#SITE-COVER > form > .search-form-2nd-class {
	position: static;
	height: 100%;
	margin: 0;
	border: 0;
}

#SITE-COVER > form > .search-form-1st-class {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	padding: 0 0.85em;
	font-family: "Open Sans", Arial, sans-serif;
	text-align: left;
	outline: none;
	border-radius: 0.32em 0 0 0.32em;
}

#SITE-COVER > form > .search-form-2nd-class {
	display: flex;
	flex: 0 0 2.8em;
	align-items: center;
	justify-content: center;
	width: 2.8em;
	padding: 0;
	cursor: pointer;
	border-radius: 0 0.32em 0.32em 0;
	transition: filter 0.15s ease;
}

#SITE-COVER > form > .search-form-2nd-class:hover {
	filter: brightness(1.08);
}

#SITE-COVER > form > .search-form-2nd-class > svg {
	display: block;
	width: 1.1em;
	height: 1.1em;
	fill: currentColor;
	stroke: currentColor;
}


/* =====================================================================
   8. ПОДВАЛ
   Цвета подвала задаются в general-fork.css.
   ===================================================================== */

footer {
	display: grid;
	grid-area: FOOTER;
	align-items: center;
	justify-items: center;
	min-height: 4.8em;
	padding: 1em 1.5em;
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 0.72em;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
	text-align: center;
}

footer > div {
	width: min(70em, 78%);
	margin: 0 auto;
}

footer a {
	color: inherit;
}


/* =====================================================================
   9. СВЕТЛАЯ ТЕМА
   ===================================================================== */

@media (prefers-color-scheme: light) {
	.TOP-MENU {
		color: var(--font-color-light);
		background: rgba(255, 253, 249, 0.98);
		border-bottom: 1px solid var(--border-light);
		box-shadow: 0 0.12em 0.5em rgba(58, 41, 24, 0.05);
	}

	.sandwich,
	.profile,
	.headline,
	.headline a,
	.top-menu-list > li > a {
		color: var(--font-color-light);
	}

	.headline svg {
		color: var(--accent);
	}

	.sandwich:hover,
	.profile:hover,
	.top-menu-list > li:hover > a,
	.top-menu-list > li:focus-within > a {
		color: #8d5c20;
		background: var(--accent-soft);
	}

	.menu-dropdown,
	.sandwich-dropdown,
	.profile-dropdown {
		color: var(--font-color-light);
		background: rgba(255, 253, 249, 0.99);
		border: 1px solid var(--border-light);
		box-shadow: 0 0.45em 1.2em rgba(58, 41, 24, 0.12);
		border-radius: 0 0 0.45em 0.45em;
	}

	.menu-dropdown a,
	.sandwich-dropdown a,
	.profile-dropdown > p:nth-child(n+3) > a {
		color: var(--font-color-light);
	}

	.menu-dropdown > a:hover,
	.menu-dropdown > a:focus-visible,
	.sandwich-dropdown > a:hover,
	.sandwich-dropdown > a:focus-visible,
	.profile-dropdown > p:nth-child(n+3) > a:hover,
	.profile-dropdown > p:nth-child(n+3) > a:focus-visible {
		color: #8d5c20;
		background: var(--accent-soft);
	}

	.profile > svg:first-child {
		display: block;
	}

	.profile > svg:last-child {
		display: none !important;
	}

	.profile .tsst1,
	.profile .tsst2,
	.profile .tsst3,
	.profile .tsst4 {
		fill: var(--font-color-light);
		stroke: var(--font-color-light);
		stroke-linejoin: round;
	}

	.profile-dropdown > p:nth-child(2) {
		color: #4b3b2c;
		border-bottom-color: var(--border-light);
	}

	.profile-dropdown > p:nth-child(2) > a {
		color: inherit;
	}

	.profile-dropdown > p:nth-child(2) > a:hover,
	.profile-dropdown > p:nth-child(2) > a:focus-visible {
		color: var(--accent);
	}

	.profile-dropdown:has(> p:nth-child(5)) > p:nth-child(4) {
		color: #8b7d6e;
	}

	#SITE-COVER > form {
		box-shadow: 0 0.35em 1em rgba(58, 41, 24, 0.14);
	}

	#SITE-COVER > form:focus-within {
		box-shadow:
			0 0.45em 1.2em rgba(58, 41, 24, 0.2),
			0 0 0 0.14em rgba(163, 107, 45, 0.18);
	}

	#SITE-COVER > form > .search-form-1st-class {
		color: var(--font-color-light);
		background: rgba(255, 253, 249, 0.97);
	}

	#SITE-COVER > form > .search-form-2nd-class {
		color: #fffdf9;
		background: var(--accent);
	}
}


/* =====================================================================
   10. ТЁМНАЯ ТЕМА
   ===================================================================== */

@media (prefers-color-scheme: dark) {
	.TOP-MENU {
		color: var(--font-color-dark);
		background: rgba(29, 33, 31, 0.98);
		border-bottom: 1px solid var(--border-dark);
		box-shadow: 0 0.15em 0.6em rgba(0, 0, 0, 0.24);
	}

	.sandwich,
	.profile,
	.headline,
	.headline a,
	.top-menu-list > li > a {
		color: #ece4da;
	}

	.headline svg,
	.headline svg path {
		color: #f0d5ad;
		fill: currentColor;
	}

	.sandwich:hover,
	.profile:hover,
	.top-menu-list > li:hover > a,
	.top-menu-list > li:focus-within > a {
		color: #e6c391;
		background: rgba(214, 173, 119, 0.1);
	}

	.menu-dropdown,
	.sandwich-dropdown,
	.profile-dropdown {
		color: var(--font-color-dark);
		background: rgba(32, 37, 36, 0.99);
		border: 1px solid var(--border-dark);
		box-shadow: 0 0.55em 1.4em rgba(0, 0, 0, 0.35);
		border-radius: 0 0 0.45em 0.45em;
	}

	.menu-dropdown a,
	.sandwich-dropdown a,
	.profile-dropdown > p:nth-child(n+3) > a {
		color: var(--font-color-dark);
	}

	.menu-dropdown > a:hover,
	.menu-dropdown > a:focus-visible,
	.sandwich-dropdown > a:hover,
	.sandwich-dropdown > a:focus-visible,
	.profile-dropdown > p:nth-child(n+3) > a:hover,
	.profile-dropdown > p:nth-child(n+3) > a:focus-visible {
		color: #e6c391;
		background: rgba(214, 173, 119, 0.1);
	}

	.profile > svg:first-child {
		display: none;
	}

	.profile > svg:last-child {
		display: block !important;
	}

	.profile .tsdt1,
	.profile .tsdt2,
	.profile .tsdt3,
	.profile .tsdt4 {
		fill: var(--font-color-dark);
		stroke: var(--font-color-dark);
		stroke-linejoin: round;
	}

	.profile-dropdown > p:nth-child(2) {
		color: #f0e5d8;
		border-bottom-color: var(--border-dark);
	}

	.profile-dropdown > p:nth-child(2) > a {
		color: inherit;
	}

	.profile-dropdown > p:nth-child(2) > a:hover,
	.profile-dropdown > p:nth-child(2) > a:focus-visible {
		color: #e6c391;
	}

	.profile-dropdown:has(> p:nth-child(5)) > p:nth-child(4) {
		color: #a99e92;
	}

	#SITE-COVER > form {
		box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.38);
	}

	#SITE-COVER > form:focus-within {
		box-shadow:
			0 0.8em 2em rgba(0, 0, 0, 0.5),
			0 0 0 0.14em rgba(214, 173, 119, 0.18);
	}

	#SITE-COVER > form > .search-form-1st-class {
		color: var(--font-color-dark);
		background: rgba(42, 38, 34, 0.94);
	}

	#SITE-COVER > form > .search-form-2nd-class {
		color: #f8ead8;
		background: #5d432d;
	}
}


/* =====================================================================
   11. ДЕСКТОП: ОТ 1024px
   ===================================================================== */

@media all and (min-width: 1024px) {
	.TOP-MENU {
		position: sticky;
		min-height: 3.35em;
		top: 0;
		grid-template-columns:
			3.4em
			10.5em
			minmax(0, 1fr)
			3.4em;
		grid-template-rows: 100%;
		grid-template-areas:
			"sandwich headline top-menu-list profile";
	}

	.top-menu-list {
		justify-content: flex-start;
	}

	.profile-dropdown {
		right: 0.65em;
	}

	#SITE-COVER {
		width: calc(100% - 2em);
		height: clamp(11em, 12.5vw, 16em);
		margin: 0 1em;
		border-radius: 0 0 0.65em 0.65em;
	}

	#SITE-COVER > form {
		top: 1.25em;
		right: 4em;
		width: min(18em, 28vw);
		height: 2.3em;
	}

	#SITE-COVER > form > .search-form-1st-class {
		font-size: 0.76em;
	}
}


/* =====================================================================
   12. ПЛАНШЕТ: 640–1023px
   ===================================================================== */

@media all and (min-width: 640px) and (max-width: 1023px) {
	.TOP-MENU {
		position: sticky;
		min-height: 3em;
		top: 0;
		grid-template-columns:
			3em
			8.7em
			minmax(0, 1fr)
			3em;
		grid-template-rows: 100%;
		grid-template-areas:
			"sandwich headline top-menu-list profile";
	}

	.headline {
		font-size: 0.8em;
	}

	.top-menu-list {
		justify-content: flex-start;
	}

	.top-menu-list > li > a {
		padding: 0 0.6em;
		font-size: 0.64em;
	}

	.menu-dropdown {
		width: min(23em, calc(100vw - 1em));
	}

	.sandwich-dropdown {
		width: 13.5em;
	}

	.profile-dropdown {
		right: 0.45em;
		width: 14.5em;
	}

	.profile svg,
	.profile img {
		flex-basis: 1.65em;
		width: 1.65em;
		height: 1.65em;
	}

	#SITE-COVER {
		width: calc(100% - 1em);
		height: 10.5em;
		margin: 0 0.5em;
		background-position: center 48%;
		border-radius: 0 0 0.55em 0.55em;
	}

	#SITE-COVER > form {
		top: 1em;
		right: 1.25em;
		width: min(17em, 34vw);
		height: 2.15em;
	}

	#SITE-COVER > form > .search-form-1st-class {
		font-size: 0.72em;
	}

	footer {
		min-height: 4.6em;
		padding: 0.9em 1.1em;
		font-size: 0.76em;
	}

	footer > div {
		width: min(92%, 42em);
	}
}


/* =====================================================================
   13. МОБИЛЬНЫЕ: ДО 639px
   ===================================================================== */

@media all and (max-width: 639px) {
	.TOP-MENU {
		position: relative;
		grid-template-columns: 3em minmax(0, 1fr) 3em;
		grid-template-rows: 3em 5em;
		grid-template-areas:
			"sandwich headline profile"
			"top-menu-list top-menu-list top-menu-list";
		align-items: stretch;
	}

	.headline {
		justify-content: center;
		font-size: 1em;
	}

	.top-menu-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(3, minmax(0, 1fr));
		width: 100%;
		height: 5em;
	}

	.top-menu-list > li {
		position: static;
		width: 100%;
		min-height: 0;
	}

	.top-menu-list > li > a {
		width: 100%;
		min-height: 100%;
		padding: 0.35em 0.5em;
		font-size: 0.7em;
		line-height: 1.25;
		white-space: normal;
	}

	.top-menu-list > li > a::after {
		margin-left: 0.3em;
	}

	/*
		На мобильных тематические меню открываются поверх основной
		навигационной сетки и автоматически разбиваются на столько
		колонок, сколько помещается по ширине. Благодаря этому даже
		длинные списки не требуют внутренней прокрутки.
	*/
	.menu-dropdown,
	.sandwich-dropdown,
	.profile-dropdown {
		position: fixed;
		top: 3.15em;
		right: 0.35em;
		left: 0.35em;
		width: auto;
		max-width: none;
		max-height: none;
		padding: 0.25em;
		overflow: visible;
		font-size: 0.9em;
		border-radius: 0.4em;
	}

	.menu-dropdown {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(8.8em, 1fr));
		gap: 0.05em 0.18em;
	}

	.top-menu-fable3 > .menu-dropdown,
	.top-menu-other > .menu-dropdown,
	.top-menu-modding > .menu-dropdown {
		right: 0.35em;
		left: 0.35em;
	}

	.sandwich-dropdown,
	.profile-dropdown {
		display: block;
	}

	.menu-dropdown > a,
	.sandwich-dropdown > a,
	.profile-dropdown > p:nth-child(n+3) > a {
		min-height: 1.7em;
		padding: 0.27em 0.42em;
		font-size: 0.82em;
		line-height: 1.18;
	}

	.profile-dropdown > p:first-child {
		padding: 0.12em 0.25em 0.08em;
	}

	.profile-dropdown > p:first-child > img {
		width: 3em;
		height: 3em;
	}

	.profile-dropdown > p:nth-child(2) {
		margin-bottom: 0.18em;
		padding: 0.14em 0.35em 0.35em;
		font-size: 0.88em;
	}

	.profile-dropdown:has(> p:nth-child(5)) > p:nth-child(4) {
		padding-right: 0.7em;
		padding-left: 0.7em;
		font-size: 0.64em;
	}

	.profile-dropdown:has(> p:nth-child(5)) > p:nth-child(4) > a {
		width: calc(100% + 1.4em);
		margin-right: -0.7em;
		margin-left: -0.7em;
		font-size: 1.34em;
	}

	.profile svg,
	.profile img {
		flex-basis: 1.7em;
		width: 1.7em;
		height: 1.7em;
	}

	#SITE-COVER {
		height: 10em;
		background-position: center 48%;
	}

	#SITE-COVER > form {
		top: 1em;
		right: 1em;
		width: min(72vw, 18em);
		height: 2.25em;
	}

	#SITE-COVER > form > .search-form-1st-class {
		font-size: 0.76em;
	}

	footer {
		min-height: 4.4em;
		padding: 0.9em 1em;
		font-size: 0.74em;
		line-height: 1.4;
	}

	footer > div {
		width: min(94%, 38em);
	}

	@media (prefers-color-scheme: light) {
		.top-menu-list {
			border-top: 1px solid var(--border-light);
		}

		.top-menu-list > li {
			border-right: 1px solid var(--border-light);
			border-bottom: 1px solid var(--border-light);
		}

		.top-menu-list > li:nth-child(2n) {
			border-right: 0;
		}
	}

	@media (prefers-color-scheme: dark) {
		.top-menu-list {
			border-top: 1px solid var(--border-dark);
		}

		.top-menu-list > li {
			border-right: 1px solid var(--border-dark);
			border-bottom: 1px solid var(--border-dark);
		}

		.top-menu-list > li:nth-child(2n) {
			border-right: 0;
		}
	}
}


/* =====================================================================
   14. БОЛЬШИЕ И СВЕРХШИРОКИЕ ЭКРАНЫ
   Корневое масштабирование находится в general-fork.css.
   Здесь остаются только пропорции самой шапки.
   ===================================================================== */

@media all and (min-width: 1920px) {
	.TOP-MENU {
		min-height: 3.35em;
	}

	#SITE-COVER {
		height: clamp(14em, 12vw, 19em);
	}

	#SITE-COVER > form {
		top: 1.35em;
		right: 4.2em;
		width: min(19em, 25vw);
		height: 2.35em;
	}

	footer {
		font-size: 0.78em;
	}
}

@media all and (min-width: 2400px) {
	.TOP-MENU {
		min-height: 3.45em;
	}

	#SITE-COVER {
		height: clamp(15em, 11.5vw, 20em);
	}

	#SITE-COVER > form {
		right: 4.6em;
		width: min(20em, 23vw);
		height: 2.4em;
	}

	footer {
		font-size: 0.78em;
	}
}

@media all and (min-width: 3200px) {
	.TOP-MENU {
		min-height: 3.55em;
	}

	#SITE-COVER {
		height: clamp(16em, 11vw, 22em);
	}

	#SITE-COVER > form {
		right: 5em;
		width: min(21em, 21vw);
		height: 2.45em;
	}
}

@media all and (min-width: 3840px) {
	.TOP-MENU {
		min-height: 3.65em;
	}

	#SITE-COVER {
		height: clamp(17em, 10.5vw, 24em);
	}

	#SITE-COVER > form {
		right: 5.4em;
		width: min(22em, 20vw);
		height: 2.5em;
	}
}
