/**
 * 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;
}

h1, h2, h3, h4, p,
.wp-block-paragraph {
	margin: 0 0 24px;
	color: var(--color-text);
}

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;
	line-height: 1.5;
}

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

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

	h4 {
		font-size: 20px;
	}

	p,
	.wp-block-paragraph {
		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-direction: column;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-menu__items a {
	color: var(--color-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.3;
}

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

.site-footer p a {
	transition: color .3s ease;
	color: var(--color-coral);
	text-decoration: none;
}

p a:hover,
p a:focus-visible {
	text-decoration: none;
	color: inherit;
}

/* 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-text);
	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 {
	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-text);
    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: 10px 0 0;
	padding: 0 0 0 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

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

@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;
	}
}

/* wpforms */

.wpforms-container {
	--wpforms-background-color: var(--light-gray) !important;
	padding: 40px !important;
	margin: 0 !important;
}

.wpforms-submit-container button,
.wpforms-field-container input {
	max-width: unset !important;
	width: 100% !important;
}

@media screen and (max-width: 768px) {
	.wpforms-container {
		padding: 20px !important;
	}
}

.review-form .review-rating {
	--ta-review-star-size: 40px;
	--ta-review-star-gap: 8px;
	--ta-review-star-inactive: #d7dce3;
	--ta-review-star-active: var(--wpforms-icon-choices-color, var(--color-coral));
}

.review-form .review-rating ul {
	display: inline-flex !important;
	flex-direction: row !important;
	justify-content: flex-start !important;
	gap: var(--ta-review-star-gap) !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.review-form .review-rating .wpforms-icon-choices-item {
	margin: 0 !important;
	display: inline-flex !important;
	min-width: unset;
}

.review-form .review-rating .wpforms-field-label-inline {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
}

.review-form .review-rating .wpforms-icon-choices-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: var(--ta-review-star-size);
	height: var(--ta-review-star-size);
	margin: 0 !important;
	position: static !important;
	padding: 0 !important;
	border: none !important;
	box-shadow: none !important;
}

.review-form .review-rating .wpforms-icon-choices-icon:before,
.review-form .review-rating .wpforms-icon-choices-icon:after {
	display: none !important;
}

.review-form .review-rating .wpforms-icon-choices-icon svg {
	width: var(--ta-review-star-size);
	height: var(--ta-review-star-size);
	display: block;
}

.review-form .review-rating .wpforms-icon-choices-icon path {
	fill: var(--ta-review-star-inactive) !important;
	transition: fill 0.2s ease;
}

.review-form .review-rating .wpforms-screen-reader-element {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	pointer-events: none;
}

.review-form .review-rating input[type='radio'] {
	display: none !important;
}

.review-form .review-rating .wpforms-icon-choices-label,
.review-form .review-rating .wpforms-icon-choices-icon-bg {
	display: none !important;
}

.review-form .review-rating ul:has(.choice-1 input:checked) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-2 input:checked) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-2 input:checked) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3 input:checked) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3 input:checked) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3 input:checked) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4 input:checked) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4 input:checked) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4 input:checked) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4 input:checked) .choice-4 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5 input:checked) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5 input:checked) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5 input:checked) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5 input:checked) .choice-4 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5 input:checked) .choice-5 .wpforms-icon-choices-icon path {
	fill: var(--wpforms-icon-choices-color) !important;
}

.review-form .review-rating ul:has(.choice-1:hover) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-2:hover) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-2:hover) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3:hover) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3:hover) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3:hover) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:hover) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:hover) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:hover) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:hover) .choice-4 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:hover) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:hover) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:hover) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:hover) .choice-4 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:hover) .choice-5 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-1:focus-within) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-2:focus-within) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-2:focus-within) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3:focus-within) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3:focus-within) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-3:focus-within) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:focus-within) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:focus-within) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:focus-within) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-4:focus-within) .choice-4 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:focus-within) .choice-1 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:focus-within) .choice-2 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:focus-within) .choice-3 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:focus-within) .choice-4 .wpforms-icon-choices-icon path,
.review-form .review-rating ul:has(.choice-5:focus-within) .choice-5 .wpforms-icon-choices-icon path {
	fill: var(--wpforms-icon-choices-color) !important;
}

/* header logo */
.header__logo .custom-logo-link {
	display: block;
}

.header__logo .custom-logo-link img {
	max-width: 170px;
}
