#masthead {
	display: flex;
	flex-direction: column;
	/*border: 2px solid blue;*/
}
.above-header-main {
	position: fixed;
	display: flex;
	flex-direction: row;
	justify-content: center;
	width: 100%;
	background-color: #fff;
	z-index: 1000;
	border-bottom: 1px solid #d1dae5;
	padding: 10px 0;
}
.section-above-header {
	width: 95%;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-self: center;
	/*border: 2px dashed red;*/
}
.above-header-wrapper {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	align-items: center;
	padding-left: 4vw;
}

.above-header-wrapper .row1 {
	color: #abb8c3;
	font-size: 12px;
}
.above-header-wrapper .row1 p {
	margin: 5px 0;
}

.above-header-wrapper .row1 a,
.above-header-wrapper .row2 {
	color: #000000;
	font-size: 18px;
	font-weight: 600;
}

.above-header-wrapper .row1 a,
.above-header-wrapper .row2 a {
	color: #000000;
	text-decoration: none;
}

.bottom-row {
	width: 95%;
	display: flex;
	flex-direction: row;
	align-self: center;
	padding-top: 60px;
}
#site-navigation {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-evenly;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	/*border: 1px dashed blue;*/
}

#site-navigation a {
	text-decoration: none;
	color: unset;
}
#site-navigation a:hover {
	color: var(--primary-color);
	transition: all 0.2s linear;
}

#site-navigation a:focus {
	color: var(--primary-color);
}

#site-navigation .current_page_item {
	color: var(--primary-color);
}

a.service-link:hover {
	color: var(--primary-color) !important;
	background-color: unset !important;
	transition: all 0.2s linear !important;
}

.nav-menu li {
	padding: 0 13px;
}
.nav-menu {
	column-gap: 2vw;
}

#masthead .wrapper-button {
	margin: auto;
	white-space: nowrap;
	color: #ffffff !important;
}
#masthead .wrapper-button a {
	display: inline-block;
	text-decoration: none;
	color: unset;
	padding: 14px 32px;
	border-radius: var(--radius-button);
	border: 1px solid var(--secondary-color);
	background-color: var(--secondary-color);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	height: auto;
	width: auto;
	transition: all 0.2s linear;
}
#masthead .wrapper-button a:hover {
	background-color: var(--background-color);
	color: var(--secondary-color);
}
/* Стрелка меню для второго уровня */
.dropdown-menu-toggle.ast-header-navigation-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 6px;
	transition: transform 0.3s ease;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.ast-icon.icon-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ast-arrow-svg {
	width: 8px;
	height: 8px;
	fill: currentColor;
	transition: transform 0.3s ease;
}

/* Вращение стрелки при наведении */
.menu-item-has-children:hover > a .ast-arrow-svg,
.menu-item-has-children.current-menu-item > a .ast-arrow-svg,
.menu-item-has-children.current-menu-ancestor > a .ast-arrow-svg {
	transform: rotate(180deg);
}

/* Для активного состояния */
.dropdown-menu-toggle[aria-expanded='true'] .ast-arrow-svg {
	transform: rotate(180deg);
}

/* ===================Стили для кнопки бургер-меню=========================== */
.menu-toggle {
	display: none; /* Скрыто по умолчанию */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001;
	position: relative;
}

.menu-toggle-icon {
	display: block;
	width: 30px;
	height: 24px;
	position: relative;
}

.menu-toggle-bar {
	display: block;
	position: absolute;
	width: 100%;
	height: 3px;
	background-color: #333;
	border-radius: 3px;
	transition: all 0.3s ease;
}

.menu-toggle-bar-top {
	top: 0;
}

.menu-toggle-bar-middle {
	top: 50%;
	transform: translateY(-50%);
}

.menu-toggle-bar-bottom {
	bottom: 0;
}

/* Состояние кнопки при открытом меню */
.menu-toggle.active .menu-toggle-bar-top {
	transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active .menu-toggle-bar-middle {
	opacity: 0;
}

.menu-toggle.active .menu-toggle-bar-bottom {
	transform: translateY(-10.5px) rotate(-45deg);
}

/* ===================Стили для мобильного меню=========================== */
.mobile-menu-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 998;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
	display: block;
	opacity: 1;
}

.mobile-navigation {
	position: fixed;
	top: 0;
	right: -100%;
	width: 320px;
	height: 100%;
	background-color: #fff;
	z-index: 999;
	overflow-y: auto;
	transition: right 0.3s ease;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-navigation.active {
	right: 0;
}

.mobile-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #eaeaea;
}

.mobile-site-branding img {
	max-height: 40px;
	width: auto;
}

.mobile-site-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.mobile-site-title a {
	text-decoration: none;
	color: #333;
}

.mobile-menu-close {
	background: none;
	border: none;
	font-size: 24px;
	color: #333;
	cursor: pointer;
	padding: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}

.mobile-menu-close:hover {
	color: var(--primary-color);
}

.mobile-menu-content {
	padding: 20px;
}

.mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu li {
	margin-bottom: 0;
	border-bottom: 1px solid #f0f0f0;
}

.mobile-menu li:last-child {
	border-bottom: none;
}

.mobile-menu a {
	display: block;
	padding: 15px 0;
	text-decoration: none;
	color: #333;
	font-size: 16px;
	font-weight: 500;
	transition: color 0.3s ease;
}

.mobile-menu a:hover {
	color: var(--primary-color);
}

.mobile-menu .current-menu-item > a {
	color: var(--primary-color);
	font-weight: 600;
}

/* Стили для подменю в мобильной версии */
.mobile-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding-left: 15px;
	display: none;
}

.mobile-menu .sub-menu.active {
	display: block;
}

.mobile-menu .sub-menu li {
	border-bottom: 1px solid #f8f8f8;
}

.mobile-menu .sub-menu li:last-child {
	border-bottom: none;
}

.mobile-menu .sub-menu a {
	padding: 12px 0;
	font-size: 14px;
	color: #666;
}

.mobile-menu .menu-item-has-children > a {
	position: relative;
	padding-right: 40px;
}

.mobile-menu .sub-menu-toggle {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #333;
	transition: color 0.3s ease;
}

.mobile-menu .sub-menu-toggle:hover {
	color: var(--primary-color);
}

.mobile-menu .sub-menu-toggle i {
	transition: transform 0.3s ease;
}

.mobile-menu .sub-menu-toggle.active i {
	transform: rotate(180deg);
}

.mobile-menu-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eaeaea;
}

.mobile-contact-info {
	margin-bottom: 20px;
}

.mobile-phone {
	display: flex;
	align-items: center;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	margin-bottom: 10px;
}

.mobile-phone i {
	margin-right: 10px;
	color: var(--primary-color);
}

.mobile-consultation {
	font-size: 14px;
	color: #666;
	margin: 0;
}

.mobile-call-button {
	display: block;
	width: 100%;
	padding: 15px;
	background-color: var(--accent-color);
	color: #fff;
	text-decoration: none;
	text-align: center;
	border-radius: var(--radius-button);
	font-weight: 600;
	font-size: 16px;
	transition: background-color 0.3s ease;
}

.mobile-call-button:hover {
	background-color: var(--primary-color);
	color: #fff;
}

/* Адаптивность */
@media (max-width: 768px) {
	.above-header-main,
	.wrapper-button,
	.above-header-wrapper {
		display: none;
	}

	.bottom-row {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		padding: 10px 10px;
		position: fixed;
		justify-content: center;
		width: 100%;
		background-color: #fff;
		z-index: 1000;
		border-bottom: 1px solid #d1dae5;
	}

	.site-branding {
		flex: 1;
	}

	#site-navigation {
		display: none; /* Скрываем основное меню на мобильных */
	}

	.menu-toggle {
		display: block; /* Показываем кнопку бургер-меню */
	}

	.ast-arrow-svg {
		width: 14px;
		height: 9px;
	}

	.dropdown-menu-toggle.ast-header-navigation-arrow {
		margin-left: 8px;
	}
}

/* Стили для кнопки бургер-меню (мобильной версии) */
.mobile-menu-toggle {
	display: none; /* Скрыто по умолчанию */
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px;
	z-index: 1001;
	position: relative;
	width: 40px;
	height: 40px;
	margin-left: 10px;
	order: 3; /* Помещаем кнопку в конец контейнера */
}

.mobile-menu-toggle-icon {
	display: block;
	width: 24px;
	height: 18px;
	position: relative;
	margin: 0 auto;
}

.mobile-menu-toggle-bar {
	display: block;
	position: absolute;
	width: 100%;
	height: 2px;
	background-color: #333;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.mobile-menu-toggle-bar-top {
	top: 0;
}

.mobile-menu-toggle-bar-middle {
	top: 50%;
	transform: translateY(-50%);
}

.mobile-menu-toggle-bar-bottom {
	bottom: 0;
}

/* Состояние кнопки при открытом меню */
.mobile-menu-toggle.active .mobile-menu-toggle-bar-top {
	transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .mobile-menu-toggle-bar-middle {
	opacity: 0;
}

.mobile-menu-toggle.active .mobile-menu-toggle-bar-bottom {
	transform: translateY(-8px) rotate(-45deg);
}

/* Адаптивность */
@media (max-width: 768px) {
	.site-branding {
		flex: 1;
		min-width: 0;
	}

	#site-navigation {
		display: none; /* Скрываем основное меню на мобильных */
	}

	.mobile-menu-toggle {
		display: flex; /* Показываем кнопку бургер-меню */
		align-items: center;
		justify-content: center;
	}

	.menu-toggle {
		display: none; /* Скрываем старую кнопку меню */
	}

	.ast-arrow-svg {
		width: 14px;
		height: 9px;
	}

	.dropdown-menu-toggle.ast-header-navigation-arrow {
		margin-left: 8px;
	}
}

@media (min-width: 769px) {
	.mobile-navigation,
	.mobile-menu-overlay,
	.mobile-menu-toggle {
		display: none !important; /* Скрываем мобильное меню на десктопе */
	}

	#site-navigation {
		display: flex; /* Показываем основное меню на десктопе */
	}

	.menu-toggle {
		display: none; /* Скрываем кнопку меню на десктопе */
	}
}

/* Настройки для мобильного меню на маленьких экранах */
@media (max-width: 480px) {
	.mobile-navigation {
		width: 100%;
	}

	.mobile-menu-toggle {
		width: 36px;
		height: 36px;
	}

	.mobile-menu-toggle-icon {
		width: 20px;
		height: 16px;
	}
}
