:root {
	--rm-width: 1240px;
}

body {
	color: var(--rm-ink,#293b34);
}

a:is(.rm-button,.button,.site-call,.wp-block-button__link,.wp-element-button),
a:is(.rm-button,.button,.site-call,.wp-block-button__link,.wp-element-button):is(:hover,:focus,:active) {
	text-decoration: none;
}

:where(main a:not(.wp-element-button):not(.has-text-color)) {
	color: var(--rm-sage,#426653);
}

main .wp-element-button:not(.has-background):not(.has-text-color) {
	background: var(--rm-sage,#426653);
	color: #fff;
}

.site-width {
	width: min(var(--rm-width), calc(100% - 96px));
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: #fff;
	box-shadow: 0 1px 0 var(--rm-tone-dce3dc,#dce3dc);
	font-size: 15px;
	line-height: 1.5;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__contact {
	padding: 0;
	background: var(--rm-tone-ecf0e9,#ecf0e9);
	color: var(--rm-tone-405549,#405549);
	font-size: 12px;
	line-height: 18px;
	letter-spacing: .02em;
}

.site-header__contact .site-width {
	min-height: 35px;
	align-items: center;
	flex-direction: row;
	gap: 12px;
}

.site-header__contact a {
	color: inherit;
	padding-block: 7px;
}

.site-header__main {
	min-height: 86px;
	justify-content: flex-start;
	gap: 24px;
}

.site-logo {
	display: flex;
	flex: 0 0 205px;
	flex-direction: column;
	gap: 7px;
	max-width: 205px;
}

.site-logo .custom-logo-link {
	display: block;
}

.site-logo .custom-logo {
	display: block;
	width: 205px;
	max-width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
	object-position: left center;
}

.site-logo > span {
	color: var(--rm-tone-526158,#526158);
	font-family: var(--rm-font-body);
	font-size: 9px;
	line-height: 1.5;
	font-weight: 400;
	letter-spacing: .05em;
	white-space: nowrap;
}

.site-navigation {
	display: block;
	margin-left: auto;
}

.site-header ul {
	align-items: center;
	gap: 18px;
}

.site-header li {
	padding: 0;
	margin: 0;
}

.site-navigation a {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--rm-tone-444,#444);
	font-size: 12px;
	line-height: 18px;
	font-weight: 700;
	white-space: nowrap;
}

.site-navigation .current-menu-item > a,
.site-navigation a:hover {
	color: var(--rm-sage,#426653);
	text-decoration: underline;
	text-underline-offset: 7px;
}

.site-nav-toggle,
.site-nav-toggle[hidden] {
	display: none;
}

.site-call {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 5px;
	color: #fff;
	font-size: 13px;
	line-height: 19.5px;
	white-space: nowrap;
}

.rm-arrow-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: inherit;
	vertical-align: -.12em;
}

.site-header__contact .rm-arrow-icon {
	width: 11px;
	height: 11px;
}

.site-call .rm-arrow-icon {
	width: 10px;
}

.eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 10px;
	font-weight: 700;
	line-height: 15px;
	letter-spacing: .16em;
}

.eyebrow::before {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: var(--rm-tone-719077,#719077);
	content: "";
}

@media (max-width: 1199px) {
	.site-width {
		width: calc(100% - 48px);
	}

	.site-header__main {
		position: relative;
		flex-wrap: wrap;
		gap: 20px;
		padding-block: 0;
	}

	.site-logo {
		margin-right: auto;
	}

	.site-nav-toggle:not([hidden]) {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		min-height: 44px;
		padding: 10px 14px;
		font-size: 13px;
	}

	.site-navigation {
		order: 4;
		width: 100%;
		margin: 0;
		max-height: calc(100dvh - 130px);
		overflow-y: auto;
	}

	.site-nav-toggle:not([hidden]) + .site-navigation {
		display: none;
	}

	.site-nav-toggle:not([hidden]) + .site-navigation.is-open {
		display: block;
	}

	.site-navigation ul {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding-bottom: 16px;
	}

	.site-navigation a {
		padding: 10px 4px;
		border-bottom: 1px solid var(--rm-tone-e8ece5,#e8ece5);
		font-size: 15px;
	}
}

@media (max-width: 767px) {
	.site-width {
		width: calc(100% - 40px);
	}

	.site-header__main {
		align-items: center;
		min-height: 79px;
		gap: 12px;
	}

	.site-logo {
		flex-basis: 177px;
		max-width: 177px;
	}

	.site-logo .custom-logo {
		width: 177px;
	}

	.site-logo > span {
		font-size: 8px;
		letter-spacing: 0;
	}

	.site-header__contact {
		font-size: 10px;
	}

	.site-header__city,
	.site-header__registration {
		display: none;
	}

	.site-header__contact .site-width {
		min-height: 34px;
		gap: 8px;
	}

	.site-header__main > .site-call {
		display: none;
	}

	.site-nav-toggle:not([hidden]) {
		padding: 8px 10px;
	}

	.admin-bar .site-header {
		top: 0;
	}
}

.site-footer {
	padding: 100px 0;
	background: var(--rm-ink,#293b34);
	color: var(--rm-tone-dbe5dc,#dbe5dc);
	font-size: 15px;
	line-height: 1.5;
}

.site-footer, .site-footer * {
	box-sizing: border-box;
}

.site-footer__main {
	padding: 50px 0 42px;
}

.site-footer__grid {
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: 34px;
}

.site-footer .custom-logo {
	display: block;
	width: 205px;
	height: auto;
	margin: 0 0 18px;
	filter: brightness(0) invert(1);
}

.site-footer h2 {
	margin: 0 0 16px;
	color: #fff;
	font-family: var(--rm-font-heading);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.site-footer p {
	margin: 0 0 12px;
	color: var(--rm-tone-c8d4ca,#c8d4ca);
	font-size: 14px;
	line-height: 1.7;
}

.site-footer a {
	color: #fff;
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
	text-decoration: underline;
	text-underline-offset: 5px;
}

.site-footer ul {
	display: block;
	margin: 0;
	padding: 0;
}

.site-footer li {
	margin: 0 0 9px;
	font-size: 14px;
	line-height: 1.5;
}

.site-footer__bottom {
	border-top: 1px solid var(--rm-tone-3d5148,#3d5148);
	padding: 16px 0;
	color: var(--rm-tone-b9c8bd,#b9c8bd);
	font-size: 12px;
	line-height: 1.5;
}

.site-footer__bottom a {
	color: var(--rm-tone-dbe5dc,#dbe5dc);
}

.site-footer__copyright {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 0;
	padding-block: 0;
	border-top: 0;
	font-size: inherit;
}

@media (max-width: 1199px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 767px) {
	.site-footer__main {
		padding: 38px 0 28px;
	}
	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.site-footer__brand {
		grid-column: auto;
	}
	.site-footer .custom-logo {
		width: 177px;
	}

	.site-footer__copyright {
		align-items: flex-start;
		flex-direction: column;
	}
}
