/* ==========================================================================
   ОБЪЕДИНЕННЫЕ СТИЛИ ОСТРОВНОЙ ШАПКИ И МЕНЮ
   ========================================================================== */

/* Сброс системных оберток Аспро */
.header_4.header,
.header_4 .header__inner,
.header_4 .header__sub-inner,
.header_4 .header__right-part,
.header_4 .header__left-part,
.header_4 .header__main-part,
.header_4 .header__main-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    height: auto !important;
    display: block !important;
}

/* Абсолютное позиционирование шапки поверх баннера */
.header_4.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: transparent !important;
}

.header_4 .header__inner {
    padding-top: 20px !important;
}

/* Белая островная плашка */
.header_4 .header__island-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(242, 242, 242, 0.8) !important;
    border-radius: 12px !important;
    box-shadow: 0px 8px 32px rgba(0, 0, 0, 0.06) !important;
    padding: 18px 24px !important; 
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important; 
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* Левая часть (Логотип + Слоган) */
.header_4 .header-flex-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important; 
    flex-shrink: 0 !important;
    height: 48px !important; 
}
.header_4 .header-flex-left .logo {
    max-width: 110px !important;
    width: 110px !important;
    display: flex !important;
    align-items: center !important;
}
.header_4 .header-flex-left .logo img {
    max-height: 48px !important; 
    width: auto !important;
    display: block !important;
}

/* Выравнивание слогана */
.header_4 .header-flex-left .line-block__item.header__slogan-text,
.header_4 .header-flex-left .header__slogan-text {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    max-width: 195px !important; 
    white-space: normal !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* Шрифт для слогана */
.header_4 .header-flex-left .header__slogan-text,
.header_4 .header-flex-left .header__slogan-text * {
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 400 !important;
    color: #000000 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* ==========================================================================
   ЖЕСТКОЕ ЦЕНТРИРОВАНИЕ ДЛЯ МЕНЮ
   ========================================================================== */
.header_4 .header-flex-center {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important; 
    margin: 0 15px !important;
    height: 48px !important; 
}

.island-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important; 
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 24px !important;
    height: 100% !important;
}

.island-menu__item {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.island-menu__link {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
    letter-spacing: -0.1px !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important; 
    padding: 0 !important;    
    margin: 0 !important;
}

.island-menu__link:hover {
    color: #2F4538 !important;
}
.island-menu__item.is-active .island-menu__link {
    color: #2F4538 !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   ВЕРТИКАЛЬНАЯ ЛИНИЯ ДЛЯ ПРАВОЙ ЧАСТИ
   ========================================================================== */
.header_4 .header-flex-right {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important; 
    height: 48px !important; 
}

.header_4 .header-flex-right .line-block {
    display: flex !important;
    align-items: center !important; 
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px !important; 
    margin: 0 !important;
    padding: 0 !important;
    height: 100% !important;
}

.header_4 .header-flex-right .line-block__item {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}

/* ==========================================================================
   ТОЧЕЧНЫЙ СБРОС БЛОКА ТЕЛЕФОНА И БЛОКИРОВКА ЭФФЕКТА УВЕЛИЧЕНИЯ
   ========================================================================== */

/* Ссылка с номером телефона */
.header_4 .header-flex-right .phones__phone-link { 
    font-size: 13px !important; 
    font-weight: 600 !important;
    color: #333333 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important; 
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important; /* Отключаем любой scale() */
    transition: color 0.2s ease !important;
}

/* Блокируем изменение размеров и трансформации при наведении */
.header_4 .header-flex-right .phones:hover,
.header_4 .header-flex-right .phones *:hover,
.header_4 .header-flex-right .phones__phone-link:hover {
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

/* Полностью тушим контейнеры с иконками трубки */
.header_4 .header-flex-right .phones .icon-block__only-icon,
.header_4 .header-flex-right .phones .icon-block__icon,
.header_4 .header-flex-right .phones svg,
.header_4 .header-flex-right .phones i.svg {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Скрываем аспровскую стрелочку выпадающего списка и сам выпадающий блок при ховере */
.header_4 .header-flex-right .phones .more-arrow,
.header_4 .header-flex-right .phones__dropdown,
.header_4 .header-flex-right .phones .dropdown {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Фиксируем габариты и отступы всех оберток блока .phones */
.header_4 .header-flex-right .phones,
.header_4 .header-flex-right .phones__phones-wrapper,
.header_4 .header-flex-right .phones__inner {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    width: auto !important;
    transform: none !important;
}

/* ==========================================================================
   ЭЛЕМЕНТЫ УПРАВЛЕНИЯ
   ========================================================================== */

/* Кнопка */
.header_4 .btn-sm { 
    padding: 10px 20px !important; 
    font-size: 12px !important; 
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    height: auto !important;
}

/* Лупа поиска */
.header_4 .header-flex-right .line-block__item .search svg,
.header_4 .header-flex-right .line-block__item .search i.svg {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* ==========================================================================
   ФИКСЫ ДЛЯ НАСТОЯЩЕГО СИСТЕМНОГО БУРГЕРА АСПРО
   ========================================================================== */
.header_4 .header-flex-right .line-block__item.custom-island-burger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    order: 99 !important;
    padding-left: 4px !important; 
}

.header_4 .header-flex-right .custom-island-burger .burger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 5px !important;
    width: 24px !important;
    height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Тушим дефолтную SVG внутри бургера */
.header_4 .header-flex-right .custom-island-burger .burger i.svg,
.header_4 .header-flex-right .custom-island-burger .burger svg {
    display: none !important;
}

.header_4 .header-flex-right .custom-island-burger .burger::before,
.header_4 .header-flex-right .custom-island-burger .burger::after {
    content: "" !important;
    height: 2px !important;
    background-color: #333333 !important;
    border-radius: 2px !important;
    transition: width 0.2s ease !important;
}

.header_4 .header-flex-right .custom-island-burger .burger::before {
    width: 22px !important;
}

.header_4 .header-flex-right .custom-island-burger .burger::after {
    width: 14px !important;
}

.header_4 .header-flex-right .custom-island-burger .burger:hover::after {
    width: 22px !important;
}
/* Плавающая шапка при скролле */
.header_4.header {
    will-change: transform !important;
}

/* Чтобы остров не прилипал к краю при fixed */
.header_4 .header__inner {
    padding-top: 20px !important;
}

/* Мягкая тень при фиксированной шапке */
.header_4 .header__island-wrapper {
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
/* Кнопка "Подать заявку" */
.header_4 .btn-default,
.header_4 .btn-default.btn,
.header_4 .header-flex-right .btn-default {
    background: #608C6F !important;
    border-color: #608C6F !important;
    color: #ffffff !important;
}

/* Hover */
.header_4 .btn-default:hover,
.header_4 .btn-default.btn:hover {
    background: #547d62 !important;
    border-color: #547d62 !important;
    color: #ffffff !important;
}
/* FIX: шапка ниже админ-панели Битрикса */
body.bx-admin-panel .header_4.header,
html.bx-admin-panel .header_4.header,
html.bx-with-bx-panel .header_4.header {
    top: 39px !important;
}
/* ==========================================================================
   ЛЕГКАЯ ТЕНЬ
   ========================================================================== */
.header_4.header {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}
.header_4.header {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    transform-origin: top center !important;
}

.header_4.header.scrolled {
    transform: scale(0.98) !important;
}
/* ==========================================================================
   ГРАНИЦА HEADER
   ========================================================================== */
.header__island-wrapper {
    border: 1px solid rgba(0,0,0,.06) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.08) !important;
}

.header_4.header.scrolled .header__island-wrapper {
    border-color: rgba(0,0,0,.10) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.12) !important;
}