/**
 * Layout and page-specific styles.
 */

@import url('./components/buttons.css');
@import url('./components/layout.css');

/* Base typography */
body {
	font-family: var(--font-primary);
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5 {
	font-family: var(--font-secondary);
}

h1, .h1 {
	font-weight: 800;
	font-size: 42px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-charcoal);
	margin: 0 0 20px;
	text-transform: uppercase;
}

h2, .h2 {
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-charcoal);
	margin: 0 0 20px;
	text-transform: uppercase;
}

h3, .h3 {
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-charcoal);
	margin: 0 0 20px;
	text-transform: uppercase;
}

p {
	font-size: 18px;
	line-height: 1.4;
	margin: 0 0 20px;
	font-weight: 400;
	font-family: var(--font-primary);
}

@media (min-width: 960px) {
	h1, .h1 {
		margin: 0 0 32px;
	}

	h2, .h2 {
		font-size: 33px;
		margin: 0 0 40px;
	}

	h3, .h3 {
		font-size: 27px;
	}
}

@media (min-width: 1440px) {
	h1, .h1 {
		font-size: 64px;
		margin: 0 0 48px;
	}

	h2, .h2 {
		font-size: 50px;
		margin: 0 0 60px;
	}

	h3, .h3 {
		font-size: 40px;
	}
}

/* utils */
.mt-auto {
	margin-top: auto !important;
}

@media (max-width: 959px) {
	.text-center-mobile {
		text-align: center !important;
	}
}

/* Sticky footer layout */
.page-content {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-image: linear-gradient(180deg, #E1E2E6 0%, #FFFFFF 73.73%);
}

.page-content__top {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* header (overlay: absolute, transparent on desktop) */
.header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--rs-header-z);
	background: transparent;
}

.header__inner {
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: calc(49px + 24px);
	padding: 15.5px 0;
}

.header__brand {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	min-width: 0;
}

.header__logo .custom-logo-link {
	display: flex;
	align-items: center;
}

.header__logo .custom-logo-link img {
	height: 49px;
	width: auto;
	max-width: none;
}

.header__logo-separator {
	flex-shrink: 0;
	width: 1px;
	align-self: stretch;
	min-height: 49px;
	margin-left: 15px;
	margin-right: 18px;
	background: var(--color-white);
}

.header__tagline {
	margin: 0;
	padding: 0;
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.2;
	color: var(--color-white);
	text-transform: uppercase;
}

.header__title {
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 12px;
	line-height: 1.2;
	color: var(--color-white);
	text-decoration: none;
}

a.header__title:hover,
a.header__title:focus-visible {
	opacity: 0.85;
}

.header-menu__items {
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 16px;
}

.header__menu {
	flex: 0 0 auto;
}

@media (min-width: 960px) {
	.header--has-menu .header__menu {
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		z-index: 1;
		max-width: min(560px, 50vw);
	}

	.header--has-menu .header__brand,
	.header--has-menu .header__title {
		position: relative;
		z-index: 2;
	}

	.header--has-menu .header__contacts {
		position: relative;
		z-index: 2;
	}
}

.header-menu__items .menu-item {
	list-style: none;
	margin: 0;
	padding: 0;
}

.header-menu__items .menu-item a {
	display: block;
	text-decoration: none;
	font-family: var(--font-primary);
	font-weight: 300;
	font-size: 16px;
	line-height: 1;
	color: var(--color-white);
	padding: 12px 8px;
}

.header-menu__items .menu-item.current-menu-item > a,
.header-menu__items .menu-item.current-menu-ancestor > a {
	font-weight: 500;
}

.header-menu__indicator {
	display: none;
}

@media (min-width: 960px) {
	.header__menu {
		position: relative;
	}

	.header-menu__indicator {
		display: block;
		position: absolute;
		left: 0;
		bottom: 0;
		width: 0;
		border-top: 2px solid var(--color-white);
		opacity: 0;
		pointer-events: none;
		transform: translateX(0);
		transition:
			transform 0.35s cubic-bezier(0.33, 1, 0.68, 1),
			width 0.35s cubic-bezier(0.33, 1, 0.68, 1),
			opacity 0.2s ease;
		will-change: transform, width;
	}

	.header__menu.header__menu--indicator-ready .header-menu__indicator {
		opacity: 1;
	}
}

.header-menu__items .menu-item .sub-menu {
	display: none !important;
}

.header__contacts {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0;
	max-width: none;
	text-align: right;
}

.header__contacts--applicants {
	gap: 15px;
}

.header__contacts-sep {
	flex-shrink: 0;
	padding: 0 0.35em;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.5px;
	color: var(--color-white);
}

.header__contact {
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.5px;
	color: var(--color-white);
	text-decoration: none;
	word-break: break-word;
}

a.header__contact:hover,
a.header__contact:focus-visible {
	opacity: 0.85;
	outline: none;
}

.header__socials {
	display: flex;
	align-items: center;
	gap: 15px;
}

.header__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
	text-decoration: none;
}

.header__social-link svg {
	display: block;
	width: auto;
	height: 18px;
}

.header__burger {
	display: none;
	width: 48px;
	height: 40px;
	border: 0;
	background: transparent;
	align-items: center;
	justify-content: center;
	align-self: center;
	gap: 6px;
	flex-direction: column;
	cursor: pointer;
	flex-shrink: 0;
}

.header__burger-line {
	width: 26px;
	height: 2px;
	background: var(--color-white);
	display: block;
	transition: transform 200ms ease, opacity 200ms ease;
	transform-origin: center;
}

.header__mobile-menu {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	height: calc(100vh - var(--rs-header-height, 0px));
	background: var(--color-white);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
	padding: 24px 20px;
	overflow-y: auto;
}

.header--menu-open .header__mobile-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.header--menu-open .header__burger-line:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.header--menu-open .header__burger-line:nth-child(2) {
	opacity: 0;
}

.header--menu-open .header__burger-line:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

body.rs-menu-open {
	overflow: hidden;
}

.header-mobile-menu__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.header-mobile-menu__items a {
	color: var(--color-charcoal);
	text-decoration: none;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	padding: 3px 0;
	display: block;
}

.header-mobile-menu__items .sub-menu {
	list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
}

.header-mobile-menu__items .sub-menu a {
	font-weight: 600;
}

@media (max-width: 959px) {
	.header {
		background: var(--color-white);
	}

	.header__inner {
		min-height: 60px;
		padding: 10px 16px;
	}

	.header__logo .custom-logo-link img {
		height: 39px;
	}

	.header__logo-separator,
	.header__tagline,
	.header__contacts {
		display: none;
	}

	.header__title {
		color: var(--color-charcoal);
	}

	.header__burger-line {
		background: var(--color-charcoal);
	}

	.header__menu {
		display: none;
	}

	.header__mobile-menu {
		padding: 40px 20px;
		background: var(--color-white);
	}

	.header__mobile-nav {
		margin-bottom: 60px;
	}

	.header__burger {
		display: inline-flex;
	}

	.header-mobile-menu__items {
		align-items: center;
		gap: 20px;
	}

	.header-mobile-menu__items a {
		font-family: var(--font-secondary);
		padding: 0;
		font-weight: 800;
		font-size: 32px;
		line-height: 1.4;
		text-align: center;
	}

	.header__mobile-socials {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 40px;
	}

	.header__social-link--mobile {
		color: var(--color-blue);
	}

	.header__social-link--mobile svg {
		height: 49px;
	}
}

.site-footer {
	background: linear-gradient(91.93deg, #0065ca -10.78%, #004080 120.28%);
	padding: 40px 0 47px;
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.site-footer__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 30px;
}

.site-footer__row--top {
	margin-bottom: 60px;
}

.site-footer__row--bottom {
	gap: 14px;
}

.site-footer__brand {
	flex: 0 0 auto;
}

.site-footer__logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-footer__logo .custom-logo-link img {
	width: 81px;
	height: auto;
	max-width: none;
}

.site-footer__title {
	font-family: var(--font-primary);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
	color: var(--color-white);
	text-decoration: none;
}

.site-footer__menu {
	display: flex;
	justify-content: center;
}

.site-footer-menu__items {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer-menu__items .menu-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer-menu__items .menu-item a {
	display: block;
	padding: 12px 8px;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 24px;
	line-height: 1;
	color: var(--color-white);
	text-decoration: none;
}

.site-footer__socials {
	display: flex;
	align-items: center;
	gap: 40px;
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.site-footer__social-link svg {
	display: block;
	width: auto;
	height: 49px;
}

.site-footer__column {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
}

.site-footer__column--center {
	flex: 1 1 auto;
	align-items: center;
	text-align: center;
}

.site-footer__copyright {
	margin: 0;
	font-family: var(--font-primary);
	font-weight: 500;
	font-size: 16px;
	line-height: 1.2;
	color: var(--color-white);
}

.site-footer__copyright--desktop {
	display: none;
}

.site-footer__copyright--mobile {
	display: block;
	margin-top: 14px;
	text-align: center;
}

.site-footer__legal {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
}

.site-footer__secondary-link {
	font-family: var(--font-primary);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.4;
	color: var(--color-white);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: text-decoration-color 200ms ease, color 200ms ease;
}

.site-footer__secondary-link:hover,
.site-footer__secondary-link:focus-visible {
	text-decoration-color: transparent;
}

.site-footer__column--left .site-footer__secondary-link {
	text-align: center;
}

@media (min-width: 1024px) {
	.site-footer {
		padding: 15px 0 17px;
	}

	.site-footer__secondary-link {
		font-size: 10px;
	}

	.site-footer__row {
		flex-direction: row;
		text-align: initial;
	}

	.site-footer__row--top {
		align-items: center;
		justify-content: space-between;
		margin-bottom: 12px;
	}

	.site-footer__row--bottom {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: flex-start;
		gap: 20px;
	}

	.site-footer__logo .custom-logo-link img {
		width: 54px;
	}

	.site-footer__menu {
		flex: 1 1 auto;
	}

	.site-footer-menu__items {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.site-footer-menu__items .menu-item a {
		padding: 8px 5px;
		font-size: 14px;
	}

	.site-footer__socials {
		flex: 0 0 auto;
		gap: 15px;
	}

	.site-footer__social-link svg {
		height: 18px;
	}

	.site-footer__column--left {
		justify-self: start;
		align-items: flex-start;
		text-align: left;
	}

	.site-footer__column--left .site-footer__secondary-link {
		text-align: left;
	}

	.site-footer__column--center {
		justify-self: center;
		align-items: center;
		text-align: center;
	}

	.site-footer__column--center .site-footer__copyright,
	.site-footer__column--center .site-footer__legal {
		width: auto;
		text-align: center;
	}

	.site-footer__copyright--desktop {
		display: block;
	}

	.site-footer__copyright--mobile {
		display: none;
	}

	.site-footer__legal {
		flex-direction: row;
		justify-content: center;
	}

	.site-footer__column--right {
		justify-self: end;
		align-items: flex-end;
		text-align: right;
	}

	.site-footer__column {
		gap: 8px;
	}
}

@media (min-width: 1440px) {
	.site-footer {
		padding: 20px 0 25px;
	}

	.site-footer__secondary-link {
		font-size: 14px;
	}

	.site-footer__row--top {
		margin-bottom: 19px;
	}

	.site-footer__logo .custom-logo-link img {
		width: 81px;
	}

	.site-footer-menu__items .menu-item a {
		padding: 12px 8px;
		font-size: 16px;
	}
}
