:root {
    --header-2025-height: 40px;
}

.header.header__container .se-btn.se-btn_main {
    max-width: none
}

.se-ai-template .header__container {
    --main-colors-blue: var(--main-colors-blue-copy);
}

.header__container .se-btn {
    font-weight: 500;
}

.header__container {
    position: relative;
    z-index: 10002;
    isolation: isolate;
    font-family: 'TT Fors', -apple-system, 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Ubuntu', 'Cantarell', sans-serif;
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: 'ss01' on, 'ss02' on, 'ss03' on, 'ss04' on, 'ss05' on, 'ss06' on, 'ss07' on;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header__container.header--fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002;
    isolation: isolate;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.header__container-inner.container {
    padding-top: 12px;
    padding-bottom: 12px;
    display: grid;
}

.mobile-menu-open .header__container-inner {
    border-bottom: 1px solid var(--main-colors-grey-2);
}

.header.header__container:has(.hello-bar--hidden) {
    transform: translateY(calc(-1 * (var(--hello-bar-height) + 12px)));
}

.header.header__container:has(.hello-bar--dismissed) {
    transform: translateY(calc(-1 * (var(--hello-bar-height))));
    transition: box-shadow 0.3s ease;
}

.header__main {
    display: flex;
    justify-content: space-between;
}

.header__main-left {
    display: flex;
    justify-content: start;
    gap: var(--spacing-h2);
    align-items: center;
}

.header__main-left-logo-block {
    display: flex;
    gap: 16px;
    align-items: center;
}

.header__main-left-logo-block svg {
    display: block;
}

.header__main-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.header__main-right-buttons {
    display: none;
}

.sign-btn.se-btn {
    color: var(--main-colors-black);
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    padding: 0;
}

.sign-btn.se-btn:hover,
.sign-btn.se-btn:active,
.sign-btn.se-btn:focus,
.sign-btn.se-btn:focus-visible {
    color: var(--main-colors-blue);
}

.header__main-right-menu-toggle {
    display: block;
    cursor: pointer;
    height: 24px;
}

.header__main-right-menu-close {
    display: none;
    cursor: pointer;
    height: 24px;
}

.header__main-right-menu-close.active {
    display: block;
}

.header__main-right-menu-toggle.hidden {
    display: none;
}

.header__main-right .sign-btn,
.header__apps-menu {
    display: none;
}

@media screen and (min-width: 768px) {
    .mobile-menu-open .header__container-inner {
        border-bottom: none;
    }

    .header__main {
        position: relative;
        isolation: isolate;
    }

    .header-menu-2025:not(.right-fixation),
    .header__main-right-buttons .se-buttons-group:first-child {
        display: none;
    }

    .header-menu-2025.right-fixation {
        position: absolute;
        top: 48px;
        right: 0;
        background-color: #fff;
        z-index: 10003;
        padding: 24px 24px 0 24px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        min-width: 632px;
        top: 48px;
        box-shadow: 0 4px 6px 1px rgba(0, 0, 0, .05);
        border: 1px solid var(--main-colors-grey-2);
        border-bottom: 0;
        display: block;
    }

    .header__main-right .sign-btn {
        display: flex;
    }

    .header__main-right-menu-toggle {
        display: block;
        cursor: pointer;
    }

    .header__main-right-buttons {
        display: flex;
        gap: 8px;
    }

    .header__apps-menu {
        display: block;
    }
}

@media screen and (min-width: 1024px) {
    .header-menu-2025.right-fixation {
        left: auto;
    }

    .header__main-right-buttons .se-buttons-group:first-child {
        display: flex;
    }
}

@media screen and (min-width: 1280px) {

    .header__main-right-menu-toggle,
    .header__main-right-menu-close {
        display: none;
    }

    .header-menu-2025:not(.right-fixation) {
        display: block;
    }
}