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

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

.container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

/* Sticky footer layout */
.page-content {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

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

h1, h2, h3, h4, p {
	margin: 0 0 24px;
	color: var(--color-navy, #061a3a);
}

h1, h2, h3, h4 {
	font-weight: 500;
	line-height: 1.3;
}

h1 {
	font-size: 60px;
	margin: 0 0 32px;
}

h2 {
	font-size: 48px;
}

h3 {
	font-size: 32px;
}

h4 {
	font-size: 24px;
}

p {
	font-weight: 300;
	font-size: 18px;
}

@media screen and (max-width: 768px) {
	h1 {
		font-size: 42px;
		margin: 0 0 24px;
	}

	h2 {
		font-size: 36px;
	}
	
	h3 {
		font-size: 24px;
	}

	h4 {
		font-size: 20px;
	}

	p {
		font-size: 16px;
		margin: 0 0 16px;
	}
}

/* 404 */
.site-main--404 {
	padding: 100px 0;
}

.page-404 {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.page-404 p:last-child {
	margin-bottom: 0;
}

/* footer */
.footer-menu__items {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.footer-menu__items a {
	color: var(--color-white, #fff);
	text-decoration: none;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
}

.footer-menu__items a:hover,
.footer-menu__items a:focus-visible {
	color: var(--color-coral, #ff7c5b);
	outline: none;
}

/* header */
.header {
	background: var(--color-white);
	position: relative;
	z-index: 100;
	transition: box-shadow 300ms ease;
}

.header.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header__placeholder,
.header__sentinel {
	height: 0;
}

.header__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 60px;
}

.header-menu__items {
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 24px;
}

.header__contacts {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
}

.header__contacts .btn-primary {
	width: auto;
	min-width: unset;
}

.header-menu__items .menu-item {
	list-style: none;
	color: var(--color-navy);
	position: relative;
}

.header-menu__items .menu-item a {
	text-decoration: none;
	color: inherit;
	padding: 28px 0;
	display: block;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
}

.header-menu__items .menu-item:hover > a {
	text-decoration: none;
	color: var(--color-coral);
}

.header-menu__items .menu-item.current-menu-parent > a,
.header-menu__items .menu-item.current-menu-item > a {
	/* text-decoration: underline; */
	color: var(--color-coral);
}

.header-menu__items .menu-item .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--color-white);
	padding: 16px;
	min-width: 240px;
	box-shadow: 0px 8px 10px rgba(0, 0, 0, 0.08);
}

.header-menu__items .menu-item:hover .sub-menu {
	display: block;
}

/* Only 2 levels max */
.header-menu__items .sub-menu .sub-menu {
	display: none !important;
}

.header-menu__items .menu-item:hover .sub-menu .menu-item a {
	padding: 0 0 12px;
}

.header-menu__items .menu-item:hover .sub-menu .menu-item:last-child a {
	padding: 0;
}

.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;
	margin-left: auto;
}

.header__burger-line {
	width: 26px;
	height: 2px;
	background: var(--color-navy);
	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(--ta-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.ta-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-navy);
	text-decoration: none;
	font-weight: 500;
	font-size: 18px;
	line-height: 1.3;
}

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

.header-mobile-menu__items .sub-menu a {
	font-weight: 500;
	font-size: 15px;
	color: rgba(6, 26, 58, 0.78);
}

@media (max-width: 1024px) {
	.header__menu,
	.header__cta {
		display: none;
	}

	.header__contacts {
		display: inline-flex;
		align-items: center;
		gap: 12px;
	}

	.header__burger {
		display: inline-flex;
	}

	.header__contacts .btn-primary {
		padding: 12px;
		min-height: auto;
	}

	.header__mobile-menu .header__cta--mobile {
		display: inline-flex;
		margin-top: 24px;
	}
}