/*
 * HelpSafe Law
 *
 * HEADER
 *
 * Шапка сайта:
 * - логотип;
 * - название HelpSafe Law;
 * - описание;
 * - навигационная область;
 * - кнопка мобильного меню.
 *
 * Здесь сознательно не задаём стили самого меню.
 * Меню будет оформлено отдельно в navigation.css.
 */


/* ============================================================
   1. ОСНОВНОЙ HEADER
   ============================================================ */

.site-header {
    position: relative;
    z-index: 100;
    background: transparent;
    width: 100%;

    border-bottom: 2px solid rgba(38, 36, 36, 0.07);
}


/* ============================================================
   2. INNER
   ============================================================ */

.site-header__inner {
    width: 100%;
    max-width: var(--law-container-width);

    min-height:
        var(--law-header-height);

    margin:
        0 auto;

    padding:
        0 var(--law-container-padding);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;
	
}


/* ============================================================
   3. BRANDING
   ============================================================ */

.site-branding {
    flex-shrink: 0;
}

.site-branding__link {
    display: inline-flex;

    align-items: center;

    gap: 12px;
}

.site-branding__logo {
    display: flex;

    width: 48px;
    height: 48px;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius:
        13px;

    background:
        var(--law-primary-light);
}

.site-branding__logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.site-branding__text {
    display: flex;

    flex-direction: column;

    line-height: 1;
}

.site-branding__name {
    color:
        #81c784;

    font-family:
        var(--law-font-heading);

    font-size:
        20px;

    font-weight:
        800;

    letter-spacing:
        -0.03em;
}

.site-branding__law {
    margin-top: 4px;

    color:
        var(--law-primary);

    font-family:
        var(--law-font-heading);

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.25em;
}



/* ============================================================
   4. ЛОГОТИП
   ============================================================ */

/*
 * Логотип исходно квадратный — 390 × 390 px.
 *
 * Поэтому здесь не используем height:auto.
 * Фиксируем квадратный визуальный контейнер.
 *
 * object-fit: contain не позволяет изображению
 * деформироваться внутри этого квадрата.
 */

.site-branding__logo {
    display: block;

    width: 56px;
    height: 56px;

    min-width: 56px;
    min-height: 56px;

    max-width: 56px;
    max-height: 56px;

    object-fit: contain;

    flex: 0 0 56px;
}


/* ============================================================
   5. АЛЬТЕРНАТИВНЫЙ ТЕКСТОВЫЙ ЗНАК
   ============================================================ */

.site-branding__mark {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    min-width: 46px;

    flex: 0 0 46px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #189589 0%,
            #167e76 100%
        );

    color: #ffffff;

    font-size: 24px;
    font-weight: 850;

    line-height: 1;

    box-shadow:
        0 7px 18px rgba(24, 149, 137, 0.16);
}


/* ============================================================
   6. ТЕКСТ БРЕНДА
   ============================================================ */

.site-branding__text {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.site-branding__title {
    margin: 0;

    color: #262424;

    font-family:
        "Manrope",
        "Inter",
        Arial,
        sans-serif;

    font-size: 18px;
    font-weight: 850;

    line-height: 1.15;

    letter-spacing: -0.02em;
}

.site-branding__description {
    margin-top: 3px;

    color: #7a827f;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;

    letter-spacing: 0.02em;

    white-space: nowrap;
}


/* ============================================================
   7. АКЦЕНТ LAW
   ============================================================ */

.site-branding__law {
    color: #189589;
}


/* ============================================================
   8. ПРАВАЯ ЧАСТЬ HEADER
   ============================================================ */

.site-header__actions {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-left: 0;
}


/* ============================================================
   9. КНОПКА ПЕРЕХОДА НА ОСНОВНОЙ HELPSAFE
   ============================================================ */

.site-header__helpsafe {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding:
        0 15px;

    border: 1px solid rgba(24, 149, 137, 0.18);
    border-radius: 10px;

    background: rgba(24, 149, 137, 0.055);

    color: #167d75;

    font-size: 12px;
    font-weight: 800;

    line-height: 1;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.site-header__helpsafe:hover {
    background: rgba(24, 149, 137, 0.10);

    border-color: rgba(24, 149, 137, 0.30);

    color: #126c65;

    transform: translateY(-1px);
}


/* ============================================================
   10. КНОПКА МОБИЛЬНОГО МЕНЮ
   ============================================================ */

.menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid rgba(38, 36, 36, 0.09);
    border-radius: 11px;

    background: #ffffff;

    color: #262424;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.menu-toggle:hover {
    background: #f5f8f6;

    border-color: rgba(24, 149, 137, 0.22);

    color: #189589;
}

.menu-toggle:active {
    transform: scale(0.96);
}


/* ============================================================
   11. BURGER
   ============================================================ */

.menu-toggle__icon {
    position: relative;

    display: block;

    width: 20px;
    height: 14px;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: "";

    position: absolute;
    left: 0;

    width: 20px;
    height: 2px;

    border-radius: 2px;

    background: currentColor;
}

.menu-toggle__icon::before {
    top: 1px;
}

.menu-toggle__icon::after {
    bottom: 1px;
}

.menu-toggle__line {
    position: absolute;

    top: 6px;
    left: 0;

    width: 20px;
    height: 2px;

    border-radius: 2px;

    background: currentColor;
}


/* ============================================================
   12. ФОКУС
   ============================================================ */

.site-branding__link:focus-visible,
.site-header__helpsafe:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid rgba(24, 149, 137, 0.22);

    outline-offset: 3px;
}


/* ============================================================
   13. STICKY HEADER
   ============================================================ */

.site-header--sticky {
    position: sticky;

    top: 0;
}
```css id="3u5p8k"
/* ============================================================
   HEADER — ПРАВАЯ ЧАСТЬ
   ============================================================ */

.site-header__right {
    display: flex;
    align-items: center;

    margin-left: auto;

    gap: 22px;

    min-width: 0;
}


/* Поиск */

.site-header__actions {
    display: flex;
    align-items: center;

    margin-left: 0;
}


/* Навигация внутри правой части */

.site-header__right .site-navigation {
    margin-left: 0;
}


/* ============================================================
   HEADER — АДАПТИВ
   ============================================================ */

@media (max-width: 900px) {

    .site-header__right {
        gap: 12px;
    }

}


@media (max-width: 560px) {

    .site-header__right {
        gap: 8px;
    }

}
```



/* ============================================================
   14. ADMIN BAR
   ============================================================ */

.admin-bar .site-header--sticky {
    top: 32px;
}


/* ============================================================
   15. ПЛАНШЕТ
   ============================================================ */

@media (max-width: 900px) {

    .site-header__inner {
        min-height: 74px;

        gap: 20px;
    }

    .site-branding__description {
        display: none;
    }

    .site-header__helpsafe {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }
}


/* ============================================================
   16. МОБИЛЬНЫЕ
   ============================================================ */

@media (max-width: 560px) {

    .site-header__inner {
        width: calc(100% - 28px);

        min-height: 68px;

        gap: 14px;
    }

    .site-branding__link {
        gap: 10px;
    }

    /*
     * Оставляем квадратную форму логотипа
     * и просто уменьшаем его размер.
     */

    .site-branding__logo {
        width: 40px;
        height: 40px;

        min-width: 40px;
        min-height: 40px;

        max-width: 40px;
        max-height: 40px;

        flex-basis: 40px;
    }

    .site-branding__mark {
        width: 40px;
        height: 40px;

        min-width: 40px;

        flex-basis: 40px;

        border-radius: 11px;

        font-size: 21px;
    }

    .site-branding__title {
        font-size: 16px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }
}


/* ============================================================
   17. ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
   ============================================================ */

@media (max-width: 380px) {

    .site-branding__logo {
        width: 38px;
        height: 38px;

        min-width: 38px;
        min-height: 38px;

        max-width: 38px;
        max-height: 38px;

        flex-basis: 38px;
    }

    .site-branding__mark {
        width: 38px;
        height: 38px;

        min-width: 38px;

        flex-basis: 38px;
    }

    .site-branding__title {
        font-size: 15px;
    }
}


/* ============================================================
   18. ADMIN BAR — МОБИЛЬНЫЙ
   ============================================================ */

@media (max-width: 782px) {

    .admin-bar .site-header--sticky {
        top: 46px;
    }
}


/* ============================================================
   19. ПЕЧАТЬ
   ============================================================ */

@media print {

    .site-header {
        position: static;

        border-bottom: 1px solid #cccccc;

        background: #ffffff;
    }

    .site-header__inner {
        width: 100%;

        min-height: auto;

        padding:
            12px 0;
    }

    .site-header__helpsafe,
    .menu-toggle {
        display: none !important;
    }
}

/* ============================================================
   HEADER — ПРАВАЯ ЧАСТЬ
   ============================================================ */

.site-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-left: auto;

    gap: 22px;

    min-width: 0;
    flex-shrink: 0;
}

.site-header__right .site-navigation {
    flex: 0 0 auto;
    min-width: 0;
}

.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    margin: 0;
    padding: 0;
}

.site-header__search {
    flex: 0 0 42px;
}

.menu-toggle {
    flex: 0 0 auto;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {

    .site-header__right {
        gap: 12px;
    }

    .site-header__right .site-navigation {
        display: none;
    }

}


@media (max-width: 560px) {

    .site-header__right {
        gap: 8px;
    }

    .site-header__search {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

}