.rcesd-site-header {
	--rcesd-bar: #0f7a43;
	--rcesd-ink: #1b1f1c;
	--rcesd-muted: #6b7280;
	--rcesd-line: #e6ebe8;
	position: relative;
	z-index: 40;
	background: #fff;
	color: var(--rcesd-ink);
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	box-shadow: 0 1px 0 var(--rcesd-line);
}

.rcesd-site-header *,
.rcesd-site-header *::before,
.rcesd-site-header *::after {
	box-sizing: border-box;
}

.rcesd-wrap {
	width: min(1240px, calc(100% - 40px));
	margin-inline: auto;
}

.rcesd-topbar {
	direction: ltr;
	background: var(--rcesd-bar);
	color: #fff;
	font-size: 13px;
	line-height: 1;
}

.rcesd-topbar__inner {
	min-height: 42px;
	display: flex;
	align-items: center;
	gap: 18px;
}

.rcesd-topbar__contacts,
.rcesd-topbar__tools,
.rcesd-langs,
.rcesd-toplinks,
.rcesd-systems__btn,
.rcesd-topbar__contact {
	display: flex;
	align-items: center;
}

.rcesd-topbar__contacts {
	gap: 18px;
	min-width: 0;
}

.rcesd-topbar__contact {
	gap: 7px;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
}

.rcesd-topbar__contact:hover {
	opacity: 0.85;
}

.rcesd-topbar__tools {
	margin-inline-start: auto;
	gap: 14px;
}

.rcesd-icon-btn,
.rcesd-systems__btn {
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	padding: 4px;
}

.rcesd-systems {
	position: relative;
}

.rcesd-systems__btn {
	gap: 4px;
	padding: 6px 2px;
}

.rcesd-systems__menu,
.rcesd-toplinks,
.rcesd-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rcesd-systems__menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 210px;
	background: #fff;
	color: var(--rcesd-ink);
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(16, 40, 24, 0.16);
	padding: 8px;
	z-index: 5;
}

.rcesd-systems.is-open .rcesd-systems__menu {
	display: block;
}

.rcesd-systems__menu a,
.rcesd-toplinks a {
	color: inherit;
	text-decoration: none;
}

.rcesd-systems__menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 8px;
}

.rcesd-systems__menu a:hover {
	background: #f3f7f4;
}

.rcesd-toplinks {
	display: flex;
	gap: 14px;
}

.rcesd-toplinks a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
}

.rcesd-toplinks a[target="_blank"]::after {
	content: "";
	width: 12px;
	height: 12px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M14 5h5v5h-2V8.4l-7.3 7.3-1.4-1.4L15.6 7H14V5zM6 7h6v2H8v9h9v-4h2v6H6V7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rcesd-langs {
	gap: 2px;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	padding: 2px;
}

.rcesd-langs a {
	color: #fff;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 4px 8px;
	border-radius: 999px;
}

.rcesd-langs a.is-active {
	background: #fff;
	color: var(--rcesd-bar);
}

.rcesd-main {
	direction: ltr;
	padding-top: 18px;
}

.rcesd-main__layout {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.rcesd-main__side {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.rcesd-main__tools {
	display: flex;
	align-items: center;
	width: 100%;
}

.rcesd-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
	text-decoration: none;
	color: inherit;
}

.rcesd-brand__mark {
	width: auto;
	height: 68px;
	max-width: 320px;
	object-fit: contain;
	flex: none;
}

.rcesd-brand__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rcesd-brand__fa {
	font-size: 20px;
	font-weight: 800;
	line-height: 1.35;
	color: #202422;
}

.rcesd-brand__en {
	font-size: 12px;
	line-height: 1.4;
	color: var(--rcesd-muted);
	text-align: right;
}

.rcesd-search {
	display: flex;
	align-items: center;
	gap: 8px;
	width: min(340px, 42vw);
	height: 44px;
	padding: 0 16px;
	border: 1px solid #e4e8e6;
	border-radius: 999px;
	background: #fff;
}

.rcesd-search button {
	display: grid;
	place-items: center;
	border: 0;
	background: transparent;
	color: #8b938e;
	padding: 0;
	cursor: pointer;
}

.rcesd-search input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	font: inherit;
	font-size: 14px;
	color: var(--rcesd-ink);
}

.rcesd-search input::placeholder {
	color: #9aa29d;
}

.rcesd-burger {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--rcesd-line);
	border-radius: 10px;
	background: #fff;
	padding: 11px 10px;
	flex-direction: column;
	justify-content: space-between;
	cursor: pointer;
}

.rcesd-burger span {
	display: block;
	height: 2px;
	background: var(--rcesd-ink);
	border-radius: 2px;
}

.rcesd-nav {
	width: 100%;
	padding: 0 0 10px;
}

.rcesd-menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	direction: rtl;
	justify-content: flex-end;
	width: 100%;
	gap: 2px;
}

.rcesd-menu li {
	position: relative;
	flex: 0 0 auto;
}

.rcesd-menu a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 7px;
	color: #243028;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
}

.rcesd-menu > li.current-menu-item > a,
.rcesd-menu > li.current-menu-ancestor > a,
.rcesd-menu a:hover {
	color: var(--rcesd-bar);
}

.rcesd-menu > .menu-item-has-children > a::after {
	content: "";
	width: 0;
	height: 0;
	border-inline: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.7;
}

.rcesd-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 220px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(16, 40, 24, 0.12);
	z-index: 6;
}

.rcesd-menu .menu-item-has-children:hover > .sub-menu,
.rcesd-menu .menu-item-has-children:focus-within > .sub-menu,
.rcesd-menu .menu-item-has-children.is-open > .sub-menu {
	display: block;
}

.rcesd-menu .sub-menu a {
	display: flex;
	padding: 9px 12px;
	border-radius: 8px;
	font-weight: 500;
}

.rcesd-menu .sub-menu a:hover {
	background: #f3f7f4;
}

.rcesd-menu .sub-menu .sub-menu {
	top: 0;
	inset-inline-start: 100%;
}

.rcesd-nav__setup {
	display: inline-block;
	margin: 8px 0 12px;
	color: var(--rcesd-bar);
	font-size: 13px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 980px) {
	.rcesd-main__layout {
		align-items: flex-start;
		gap: 16px;
	}

	.rcesd-burger {
		display: flex;
		margin-left: 12px;
	}

	.rcesd-search {
		width: min(100%, 280px);
	}

	.rcesd-main {
		position: relative;
	}

	.rcesd-brand__mark {
		width: auto;
		height: 56px;
		max-width: 46vw;
	}

	.rcesd-brand__fa {
		font-size: 15px;
		line-height: 1.45;
		overflow-wrap: anywhere;
	}

	.rcesd-brand__en {
		display: none;
	}

	.rcesd-nav {
		display: none;
		padding-bottom: 16px;
	}

	.rcesd-site-header.is-menu-open .rcesd-nav {
		display: block;
	}

	.rcesd-menu {
		flex-direction: column;
		align-items: stretch;
		border-top: 1px solid var(--rcesd-line);
		padding-top: 8px;
	}

	.rcesd-menu .sub-menu {
		position: static;
		box-shadow: none;
		padding-inline-start: 12px;
	}

	.rcesd-topbar__inner {
		min-height: 38px;
		gap: 10px;
	}

	.rcesd-topbar__contact span {
		display: none;
	}
}

.rcesd-above,
.rcesd-above .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rcesd-above {
	display: flex;
	align-items: center;
	gap: 16px;
	direction: rtl;
}

.rcesd-above > li {
	position: relative;
}

.rcesd-above a {
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.rcesd-above > .menu-item-has-children > a::after {
	content: "";
	border-inline: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.85;
}

.rcesd-above .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	inset-inline-start: 0;
	min-width: 200px;
	background: #fff;
	color: var(--rcesd-ink);
	border-radius: 12px;
	box-shadow: 0 14px 36px rgba(16, 40, 24, 0.16);
	padding: 8px;
	z-index: 6;
}

.rcesd-above li:hover > .sub-menu,
.rcesd-above li:focus-within > .sub-menu {
	display: block;
}

.rcesd-above .sub-menu a {
	display: block;
	color: var(--rcesd-ink);
	padding: 9px 12px;
	border-radius: 8px;
}

.rcesd-above .sub-menu a:hover {
	background: #f3f7f4;
}

.rcesd-above__setup {
	color: #fff;
	font-size: 12px;
	text-decoration: none;
}

@media (max-width: 640px) {
	.rcesd-above {
		flex-wrap: wrap;
		gap: 10px;
	}
}
