header {
	position: fixed;
	top: var(--banner-height, 0);
	transition: top 0.5s ease;
	z-index: 999;
}

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

.banner-wrap {
	width: 100%;
	background: #f1f3f9;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 1000;
	overflow: hidden;
	box-shadow: 0 12px 24px rgba(37, 45, 85, 0.12);
	transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
	overflow: hidden;
	max-height: 1000px;
}

.banner-wrap.hidden {
	opacity: 0;
	transform: translateY(-20px);
	max-height: 0;
	pointer-events: none;
}

.banner {
	width: 100%;
	max-width: 1216px;
	margin: 0 auto;
	color: #212529;
	padding: 10px 63px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.banner-content {
	display: flex;
	align-items: center;
	gap: 15px;
	flex: 1;
	justify-content: center;
	text-align: center;
	padding: 10px 0;
}

.banner-text {
	font-weight: 400;
	color: #22284c;
	max-width: 600px;
}

/* Кнопка подписки */
.banner-btn {
	background: #1c54f4;
	border: 2px solid #1c54f4;
	color: white;
	font-weight: 400;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 40px;
	transition: 0.3s;
	white-space: nowrap;
}

.banner-btn:hover {
	background: #fff;
	color: #252d55;
	border: 2px solid #252d55;
	transition: all 0.4sease-out;
}

.banner-close {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	display: flex;
	align-items: center;
	padding-left: 20px;
	padding-right: 20px;
	font-size: 23px;
	font-weight: 600;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	opacity: 1;
	z-index: 3;
	background: none;
	border: none;
	cursor: pointer;
	color: #666;
}

.banner-close:hover {
	color: black;
}

.top-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.middle-wrapper nav ul{
	display: flex;
	gap: 20px;
}

.end-wrapper, .top-info-wrapper {
	display: flex;
	align-items: center;
}

.top-info-wrapper {
	gap: 20px;
}

.top-info-wrapper * {
	font-weight: 400;
	font-style: Regular;
	font-size: 13px;
	leading-trim: NONE;
	line-height: 20px;
	letter-spacing: 0%;
	margin-bottom: 7px;
}

.middle-wrapper nav * {
	font-weight: 400;
	font-style: Regular;
	font-size: 14px;
	leading-trim: NONE;
	line-height: 22px;
	letter-spacing: 0%;
	text-decoration: underline;
}

.middle-wrapper {
	margin-right: auto;
}

.logo-wrapper {
	margin-right: 31px;
}

.end-wrapper .search {
	margin: 0 24px 0 16px;
}

header .header_bottom, header .header_top {
	padding-left: 0;
}

.bottom-wrapper nav {
	width: 100%;
}

.bottom-wrapper {
	margin-bottom: 17px;
}

.bottom-wrapper nav ul {
	justify-content: center;
	width: 100%;
	gap: 20px;
}

.bottom-wrapper nav ul.submenu_list {
	gap: 0;
	display: block;
}

.header-cart-link {
	position: relative;
	padding-right: 10px;
}

.header-cart-link span {
	display: block;
	position: absolute;
	top: -8px;
	right: 0;
	color: #fff;
	font-weight: 400;
	font-size: 13px;
	line-height: 20px;
	width: 20px;
	height: 20px;
	text-align: center;
	z-index: 1;
}

.header-cart-link span.empty {
	display: none;
}

.header-cart-link span:before {
	content: '';
	padding: 10px;
	border-radius: 50%;
	background-color: #1C54F3;
	position: absolute;
	left: 0;
	top: 0;
	z-index: -1;
}



@media (min-width: 1245px) {
	.mobmenu {
		display: none !important; 
	}
}

@media (max-width: 1244px) {
	.middle-wrapper, .end-wrapper {
		display: none;
	}
	
	.header_bottom {
		gap: 50px;
	}

    .bottom-wrapper{
        display: none;
    }

    .menu_has_child:hover a::after{
        border-color: #252d55 !important;
    }
}

@media (max-width: 768px) {
	.banner {
		flex-direction: row;
		align-items: center;
		padding: 10px 53px;
	}

	.banner-content {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.banner-btn {
		text-align: center;
	}

    .bottom-wrapper{
        display: none;
    }
    .s_l_item {
        white-space: wrap;
    }
}

/* --- БУРГЕР --- */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}
.burger span, .burger::before, .burger::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #252d55;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.burger.active::before { transform: rotate(45deg) translate(6px, 6px); }
.burger.active span { opacity: 0; }
.burger.active::after { transform: rotate(-45deg) translate(6px, -6px); }

/* --- ОСНОВНОЙ КОНТЕЙНЕР МЕНЮ --- */
.mobmenu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    padding: 80px 24px 40px; 
    overflow-y: auto;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем всё */
    text-align: center;
}
.mobmenu.active { left: 0; }
body.no-scroll { overflow: hidden; }

/* 1. Верх (Язык) */
.mobmenu_header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 20px;
}
.mobmenu_header .lang { position: static; }

/* 2. Вторичное меню (О нас, Блог...) */
.mobmenu_secondary_nav { margin-bottom: 30px; }
.mobmenu_secondary_nav nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}
.mobmenu_secondary_nav nav ul li { margin: 0; }
.mobmenu_secondary_nav nav ul li a {
    font-size: 15px;
    color: #252D55;
    text-decoration: underline; /* Подчеркивание как на макете */
    font-weight: 400;
    border: none;
}

/* 3. Контакты */
.mobmenu_contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}
.mobmenu_contacts .mob_hours {
    font-size: 14px;
    font-weight: 700;
    color: #252D55;
}
.mobmenu_contacts .mob_phone {
    font-size: 16px;
    font-weight: 700;
    color: #252D55;
    text-decoration: none;
}

/* 4. Основные услуги */
.mobmenu_primary_nav { width: 100%; margin-bottom: 40px; }
.mobmenu_primary_nav nav ul {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    width: 100%;
}
.mobmenu_primary_nav .h_bottom_item {
    margin: 0;
    border-bottom: 1px solid #f2f4f8;
}
.mobmenu_primary_nav .h_bottom_item > a {
    display: flex;
    justify-content: center; /* Текст по центру */
    align-items: center;
    padding: 18px 0;
    font-size: 16px;
    font-weight: 700;
    color: #252D55;
    text-transform: uppercase;
    position: relative;
}

/* Стрелочки для выпадающего меню */
.mobmenu .menu_has_child > a::after {
    content: '';
    position: absolute;
    right: 10px; /* Прижимаем стрелку вправо */
    top: 25px;
    display: block;
    width: 8px;
    height: 8px;
    transform: rotate(-45deg); /* Стрелка вправо (закрыто) */
    transition: transform 0.3s ease;
}
.mobmenu .menu_has_child.open > a::after {
    transform: rotate(135deg); /* Стрелка вниз (открыто) */
}

/* Выпадающие списки (Аккордеон) */
.mobmenu .submenu {
    display: none;
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 10px 0 20px;
}
.mobmenu .sub_cont { padding: 0; box-shadow: none; border-radius: 0; text-align: center; }
.mobmenu .s_l_item { margin-bottom: 15px; }
.mobmenu .s_l_item a { font-size: 14px; color: #252D55; font-weight: 400; }
.mobmenu .all_service a { color: #1c54f4; text-decoration: underline; font-weight: 700;}

/* Поиск */
.mobmenu_search a { border: none !important; }

/* 5. Кнопка внизу */
.mobmenu .blue_button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

@media (min-width: 1245px) {
    .burger{
        display: none;
    }
}