/* =============================================
   LEADERS: Обёртка хедера + панель сервисов
   ============================================= */
.leaders-header-wrapper {
    position: relative;
    z-index: 1000;
}

/* Переопределяем хедер: добавляем align-items для вертикального выравнивания */
.leaders-header-wrapper .header {
    display: flex;
    align-items: center;
}

/* Заголовок «Лидеры социальных изменений» — по центру, как в оригинале */
.leaders-header-wrapper .header__logo-title {
    flex: 1;
    text-align: center;
}

/* Блок действий (кнопка «Все сервисы» + бургер) */
.leaders-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Кнопка «Все сервисы» — десктоп */
.leaders-header__btn--services {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px 12px 16px;
    gap: 8px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    cursor: pointer;
    background: #FFFFFF;
    font-family: 'Wix Madefor Display', sans-serif !important;
    font-weight: 400;
    font-size: 16px !important;
    line-height: 18px;
    color: #282828;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

    .leaders-header__btn--services:hover {
        background: #F4F2F1;
        border-color: #D0D0D0;
    }

    .leaders-header__btn--services.leaders-header__btn--active {
        background: #E6D4B6;
        border-color: #E6D4B6;
    }

        .leaders-header__btn--services.leaders-header__btn--active:hover {
            background: #D5C3A5;
            border-color: #D5C3A5;
        }

    .leaders-header__btn--services span {
        font-family: 'Wix Madefor Display', sans-serif !important;
        font-weight: 400;
        font-size: 16px !important;
        line-height: 18px;
        color: #282828;
    }

    .leaders-header__btn--services svg {
        flex-shrink: 0;
    }

/* Мобильные кнопки бургер/закрыть */
.leaders-header__btn--mobile-burger,
.leaders-header__btn--mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

/* =============================================
   DESKTOP: SERVICES PANEL (sp)
   ============================================= */
.sp {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #FFFFFF;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    padding: 16px 48px 24px;
    box-sizing: border-box;
}

    .sp.sp--open {
        display: block;
    }

.sp__content {
    display: flex;
    gap: 12px;
}

.sp__column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.sp__card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 12px !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    background: #FFFFFF !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
    box-shadow: none !important;
    margin: 0 !important;
}

    .sp__card:hover {
        background: #F4F2F1 !important;
        text-decoration: none !important;
        box-shadow: none !important;
    }

.sp__card-icon {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
    display: inline-block !important;
    max-width: 24px !important;
}

.sp__card-title {
    font-family: 'Wix Madefor Display', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 18px !important;
    color: #282828 !important;
    flex: 1 !important;
    text-align: left !important;
}

.sp__card:hover .sp__card-title {
    color: #282828 !important;
}

.sp__card-arrow {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.15s ease !important;
    object-fit: contain !important;
    display: inline-block !important;
    max-width: 24px !important;
}

.sp__card:hover .sp__card-arrow {
    opacity: 1 !important;
}

/* Socials row */
.sp__socials {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 0 12px;
    margin-top: 16px;
}

.sp__soc-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #F4F2F1;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.15s ease;
}

    .sp__soc-link:hover {
        background: #E8E5E3;
        box-shadow: none !important;
    }

    .sp__soc-link img {
        width: 24px;
        height: 24px;
        display: inline-block !important;
    }

/* Overlay */
.sp-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
}

    .sp-overlay.sp-overlay--open {
        display: block;
    }

/* =============================================
   MOBILE MENU (mm)
   ============================================= */
.mm {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1300;
    overflow-y: auto;
    flex-direction: column;
    background: #FFFFFF;
}

    .mm.mm--open {
        display: flex;
    }

.mm__separator {
    width: 100%;
    height: 1px;
    background: #F4F2F1;
}

.mm__separator--transparent {
    opacity: 0;
}

.mm__services {
    display: flex;
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    background: #F4F2F1;
    flex: 1;
}

    .mm__services .mm__separator {
        background: #E5E2E0;
    }

.mm__services-title {
    font-family: 'Wix Madefor Display', sans-serif !important;
    font-weight: 400;
    font-size: 20px !important;
    line-height: 24px;
    color: #BDBDBD;
}

.mm__svc-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Wix Madefor Display', sans-serif !important;
    font-weight: 600;
    font-size: 20px !important;
    line-height: 24px;
    color: #282828;
    text-decoration: none;
    justify-content: space-between;
}

    .mm__svc-link:hover {
        color: #282828;
        text-decoration: none;
    }

    .mm__svc-link img {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        object-fit: contain;
        display: inline-block !important;
    }

    .mm__svc-link img.mm__svc-arrow {
        width: 20px;
        height: 20px;
        opacity: 0;
        margin-left: auto;
        transition: opacity 0.15s ease;
    }

    .mm__svc-link:hover img.mm__svc-arrow {
        opacity: 0.5;
    }

.mm__svc-link-text {
    flex: 1;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media screen and (max-width: 768px) {
    .leaders-header__btn--services {
        display: none;
    }

    .leaders-header__btn--mobile-burger {
        display: flex;
    }

    .sp {
        display: none !important;
    }
}

@media screen and (min-width: 769px) {
    .leaders-header__btn--mobile-burger,
    .leaders-header__btn--mobile-close {
        display: none !important;
    }

    .mm {
        display: none !important;
    }
}