.page-wrapper {
    .header-minfin {
        padding-top: 16px;
        color: #fff;
        background: transparent;
        z-index: 6;
        position: relative;
        background: var(--Main2);

        @media (max-width: 767px) {
            padding-top: 8px;
        }

        &.transparent-header {
            background: transparent;
        }

        &.header_wide {
            padding:16px;
            background: var(--Main2);
            background-repeat: no-repeat;
            background-position: 50%;
            background-size: cover;
            z-index: 6;

            .container {
                max-width: 100vw;
                padding-left: 0;
                padding-right: 0;
            }

            .header-minfin-top {
                margin-bottom: 0;

                @media (max-width: 767px) {
                    margin-bottom: 16px;
                }
            }

            .header-minfin-nav {
                display: none;
            }
        }
    
        // header-minfin-desctop
        &-desctop {
            display: block;
            width: 100%;
    
            @media (max-width: 991px) {
                display: none;
            }
        }
    
        // header-minfin-mobile
        &-mobile { 
            display: none;
    
            @media (max-width: 991px) {
                display: block;
            }
    
            .header-minfin-logo__img {    
                &:after {
                    display: none;
                }
            }
    
            .header-minfin-nav {
                position: absolute;
                left: 0;
                top: 0;
                width: 100vw;
                height: 100vh;
                z-index: -1;
                transform: translateY(-100%);
                transition: .2s;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                padding-top: 8px;
                opacity: 0;
                background: rgba(27, 76, 90, 0.25);
                background-blend-mode: darken;
    
                @media (max-width: 767px) {
                    padding-left: 15px;
                    padding-right: 15px;
                }
    
                &_active {
                    opacity: 1;
                    transform: translateY(0);
                    z-index: 10;

                    @media (max-width: 991px) {
                        top: 144px;
                    }

                    @media (max-width: 767px) {
                        top: 132px;
                    }

                    @media (max-width: 575px) {
                        top: 116px;
                    }
                }
    
                &__link {
                    min-height: 56px;
                    background: #fff;
                    margin: 0;
                    color: #1A2123;
                    font-family: 'PT Sans', sans-serif;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    min-width: 344px;
                    border-bottom: 1px solid var(--Bg1);

                    @media (max-width: 767px) {
                        width: 100%;
                    }
    
                    &:first-child {
                        border-radius: 13px 13px 0 0;
                    }
    
                    &:last-child {
                        border-radius: 0 0 13px 13px;
                        border-bottom: none;
                    }
    
                    &_active {
                        &:after {
                            display: none;
                        }
                    }
                }
            }
        }
    
        // header-minfin-burger
        &-burger {
            width: 24px;
            height: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 11;
    
            // header-minfin-burger_active
            &_active {
                .header-minfin-burger__center {
                    background: transparent;
    
                    &:before {
                        transform: rotate(-45deg) translate(-2px, 1.5px);
                    }
    
                    &:after {
                        transform: rotate(45deg);
                    }
                }
            }
    
            // header-minfin-burger__center
            &__center {
                width: 18px;
                height: 2px;
                border-radius: 20px;
                background: #ffffff;
                position: relative;
                transition: .2s;
    
                // header-minfin-burger__center:before
                // header-minfin-burger__center:after
                &:before, &:after {
                    content: '';
                    position: absolute;
                    left: 0;
                    width: 100%;
                    height: 2px;
                    background: #fff;
                    transform-origin: left center;
                    transition: .2s;
                }
    
                // header-minfin-burger__center:before
                &:before {
                    top: 5px;
                }
    
                // header-minfin-burger__center:after
                &:after {
                    bottom: 5px;
                }
            }
        }
    
        // header-minfin-top
        &-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 24px;
            position: relative;
    
            @media (max-width: 767px) {
                margin-bottom: 12px;
                padding-bottom: 8px;
            }
        }

        // header-minfin-notification
        &-notification {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            margin-right: 32px;
            margin-left: auto;

            @media (max-width: 575px) {
                margin-right: 16px;
            }
        
            .icon {
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                position: relative;
        
                &__unread {
                    display: none;
                    position: absolute;
                    right: 0;
                    top: 0;
                    width: 10px;
                    height: 10px;
                    border-radius: 50%;
                    background: var(--Red);
                }
            }
        
            .notification {
                position: absolute;
                max-width: 420px;
                width: 100vw;
                right: 0;
                bottom: -6px;
                transform: translateY(100%);
                background: #fff;
                box-shadow: 0px 1px 4px rgba(58, 58, 58, 30%);
                border-radius: 4px;
                color: var(--Main1);
                max-height: 0;
                overflow: hidden;
                opacity: 0;
                transition: .3s;
                z-index: 1;
        
                @media (max-width: 575px) {
                    max-width: calc(100vw - 32px);
                    right: -54px;
                }
        
                &.active {
                    max-height: 10000px;
                    overflow: auto;
                    opacity: 1;
                }
        
                &-head {
                    padding: 16px;
                    font-family: 'PT Sans Caption';
                    font-style: normal;
                    font-weight: 700;
                    font-size: 16px;
                    line-height: 125%;
                    color: var(--Main1);
                }
        
                &-list {
                    max-height: 350px;
                    overflow: auto;
                }
        
                &-item {
                    display: flex;
                    align-items: flex-start;
                    padding: 8px 16px;
                    border-top: 1px solid var(--Bg1);
                }
        
                &-icon {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transform: translateY(3px);
                    min-width: 16px;
                    min-height: 16px;
                    margin-right: 8px;
                }
        
                &-info {
                    display: flex;
                    flex-direction: column;
        
                    &__title {
                        font-family: 'PT Sans';
                        font-style: normal;
                        font-weight: 400;
                        font-size: 14px;
                        line-height: 20px;
                        color: var(--Main1);
                        -webkit-line-clamp: 3;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        max-height: 60px;
                        -webkit-box-orient: vertical;
                        display: -webkit-box;
                        margin-bottom: 8px;
                    }
        
                    &__date {
                        font-family: 'PT Sans';
                        font-style: normal;
                        font-weight: 400;
                        font-size: 12px;
                        line-height: 133%;
                        color: var(--Secondary);
                    }
                }
            }
        }
    
        // header-minfin-bottom
        &-bottom {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            position: relative;
            padding-bottom: 12px;
    
            .header-minfin-nav__phone {
                margin-left: unset;
    
                span {
                    display: inline-block;
    
                    @media (max-width: 767px) {
                        display: none;
                    }
                }
    
                svg {
                    display: none;
    
                    @media (max-width: 767px) {
                        display: inline-block;
                    }
                }
            }
        }
    
        // header-minfin-logo
        &-logo {
            display: flex;
            align-items: center;
    
            // header-minfin-logo__img
            &__img {
                position: relative;
                width: 48px;
                height: 38px;
                background-image: url("data:image/svg+xml,%3Csvg width='49' height='38' viewBox='0 0 49 38' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_8257_124557)'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M17.8399 32.9983C11.4882 30.575 8.19026 23.38 10.4884 16.9595C12.787 10.5397 19.8249 7.2884 26.1761 9.71102L24.8661 13.3705C20.5108 11.7086 15.6853 13.9388 14.1091 18.3408C12.5331 22.7434 14.7946 27.6774 19.1498 29.3389L17.8399 32.9983Z' fill='%23AE2C32'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.62346 30.9199C-2.67416 20.3414 1.43456 7.47817 11.7824 2.24549C16.7954 -0.289534 22.5077 -0.676551 27.8666 1.15466C33.226 2.98584 37.591 6.81654 40.1571 11.941L32.2719 15.9284C30.7837 12.9568 28.2529 10.7359 25.1454 9.67391C22.0382 8.61192 18.726 8.83685 15.8195 10.3063C9.81909 13.3404 7.43696 20.7991 10.5086 26.9329L2.62346 30.9199Z' fill='%23C1E7F6'/%3E%3Cpath opacity='0.9' fill-rule='evenodd' clip-rule='evenodd' d='M5.89871 25.0826C4.10718 15.9054 9.74616 7.14312 18.4573 5.54894L19.3317 9.83788C16.2105 10.4966 13.4999 12.277 11.7463 15.004C9.99322 17.7313 9.38118 21.0425 10.0226 24.3286L5.89871 25.0826Z' fill='%2342A5DC'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.6068 35.9539C14.8906 35.1584 11.6722 32.9258 9.54415 29.6682C7.41574 26.411 6.63276 22.5182 7.33889 18.7076C8.0454 14.897 10.1563 11.6241 13.2832 9.4925L14.8497 11.8903C12.3378 13.6028 10.6418 16.232 10.0742 19.2934C9.5066 22.3548 10.1359 25.4824 11.8456 28.0994C13.5557 30.7165 16.1413 32.5099 19.1266 33.1492C22.1115 33.7889 25.1394 33.1973 27.6517 31.4848L29.2181 33.8822C27.4818 35.0665 25.5471 35.8198 23.5335 36.1193C21.9215 36.3591 20.259 36.3082 18.6068 35.9539Z' fill='%2342527F'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M34.0285 15.9661C30.725 9.06351 22.5526 6.10523 15.8106 9.37199L14.1422 5.88574C18.3182 3.86302 23.0398 3.62539 27.4393 5.21808C31.8383 6.81017 35.3877 10.0415 37.4336 14.3164L34.0285 15.9661Z' fill='%23FEFEFE'/%3E%3Cpath opacity='0.9' fill-rule='evenodd' clip-rule='evenodd' d='M14.5567 6.87548C15.3558 6.49722 17.2046 5.75986 18.6008 5.5316L19.4355 9.87023C18.6371 9.978 17.2119 10.4698 16.4145 10.8981C15.6258 9.28354 15.3134 8.54239 14.5567 6.87548Z' fill='%2342A5DC' fill-opacity='0.6'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M22.3196 32.1418C19.3456 32.2113 16.5066 31.1006 14.3261 29.0145C12.1456 26.928 10.8845 24.1162 10.7748 21.0964L12.1244 21.0646C12.2208 23.7186 13.3291 26.1898 15.2455 28.0232C17.1616 29.8563 19.6563 30.8324 22.27 30.7717L22.3196 32.1418Z' fill='%23DF2F29'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M18.3344 37.9878C9.082 35.8787 3.13992 26.5384 5.08822 17.166L8.51275 17.9465C6.96205 25.4061 11.6917 32.8404 19.0557 34.5188L18.3344 37.9878Z' fill='%231C1951'/%3E%3C/g%3E%3Cline opacity='0.4' x1='48.0352' y1='3.49982' x2='48.0352' y2='34.4998' stroke='%23C8D3D8' stroke-linecap='round'/%3E%3Cdefs%3E%3CclipPath id='clip0_8257_124557'%3E%3Crect width='40' height='38.0034' fill='white' transform='matrix(1 0 0.0140699 0.999901 0 0)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
                background-size: contain;
                background-repeat: no-repeat;
                background-position: center center;
                margin-right: 12px;
                cursor: pointer;
            }
    
            // header-minfin-logo__text
            &__text {
                font-size: 14px;
                line-height: 18px;
                color: #fff;
                font-family: 'Inter' !important;
                font-weight: 700;

                @media (max-width: 767px) {
                    font-size: 11px;
                    line-height: 14px;
                    font-weight: 700;
                }
            }
        }
    
        // header-minfin-auth
        &-auth {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            font-family: 'PT Sans', sans-serif;
    
            // header-minfin-auth:hover
            &:hover {
    
                .header-minfin-auth-user-menu {
                    display: flex;
                }
            }
    
            // header-minfin-auth-user
            &-user {
                display: flex;
                align-items: center;
    
                // header-minfin-auth-user-info
                &-info {
                    display: flex;
                    flex-direction: column;
                    align-items: flex-end;
                    margin-right: 8px;

                    @media (max-width: 575px) {
                        display: none;
                    }
    
                    // header-minfin-auth-user-info__status
                    &__status {
                        font-size: 12px;
                        line-height: 16px;
                        color: #fff;
                    }
    
                    // header-minfin-auth-user-info__email
                    &__email {
                        font-size: 16px;
                        line-height: 24px;
                        color: #fff;
                    }

                    &__identitytype {
                        font-weight: 400;
                        font-size: 12px;
                        line-height: 16px;
                        color: #fff;
                    }
                }
    
                // header-minfin-auth-user-icon
                &-icon {
                    width: 40px;
                    height: 40px;
                    border: 1px solid #fff;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21V19C20 16.7909 18.2091 15 16 15H8C5.79086 15 4 16.7909 4 19V21' stroke='%23C8D3D8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z' stroke='%23C8D3D8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
                    background-color: #EFF3F5;
                    background-repeat: no-repeat;
                    background-position: center center;
                    background-size: contain;
    
                    @media (max-width: 767px) {
                        width: 38px;
                        height: 38px;
                    }
                }
    
                // header-minfin-auth-user-menu
                &-menu {
                    display: none;
                    flex-direction: column;
                    position: absolute;
                    right: 0;
                    top: 40px;
                    z-index: 100;
                    background-color: #fff;
                    box-shadow: 0 1px 15px 0 #8e8e8e;
                    border-radius: 8px;
                    overflow: hidden;
                    width: 250px;
    
                    // header-minfin-auth-user-menu__item
                    &__item {
                        font-size: 19px;
                        line-height: 120%;
                        color: #414141;
                        width: 100%;
                        height: 100%;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        text-align: center;
                        height: 44px;
                        background: #fff;
                        transition: .2s;
    
                        // header-minfin-auth-user-menu__item:hover
                        &:hover {
                            background: #F0F0F2;
                        }
                    }
                }
            }
    
            .btn.btn-outline {
                color: #fff;
                border-color: #fff;
                border-radius: 16px;

                &:hover {
                    color: #fff;
                    border-color: #fff;
                    background-color: transparent;
                }
            }
        }
    
        // header-minfin-nav
        &-nav {
            display: flex;
            align-items: center;
            padding: 16px 0;
    
            // header-minfin-nav__link
            &__link {
                font-size: 16px;
                line-height: 20px;
                margin-right: 24px;
                color: #fff;
                position: relative;
    
                // header-minfin-nav__link_active
                &_active {
    
                    // header-minfin-nav__link_active:after
                    &:after {
                        content: '';
                        position: absolute;
                        left: 0;
                        bottom: -16px;
                        width: 100%; 
                        height: 2px;
                        background: #fff;
                     }
                }

                &_accent {
                    font-weight: 700;
                }

                &_additional {
                    position: relative;
                    cursor: default;
                    height: 20px;

                    @media (max-width: 767px) {
                        display: none;
                    }

                    &:before {
                        content: '';
                        position: absolute;
                        left: 0px;
                        top: 0;
                        width: 1px;
                        height: 100%;
                        background: #BFC5CC;
                    }
                }
            }
    
            // header-minfin-nav__phone
            &__phone {
                margin-right: 0;
                margin-left: auto;
                font-size: 14px;
                color: #fff;
                position: relative;

                &:hover {
                    span {
                        background-image: linear-gradient(#fff 0%, #fff 100%) !important;
                    }
                }

                span {
                    display: inline !important;
                    background-image: linear-gradient(var(--Stroke) 0%, var(--Stroke) 100%) !important;
                    background-repeat: no-repeat;
                    background-size: 100% 1px !important;
                    background-position: 0 100%;
                    transition: background-image .25s ease-in;
                    color: #fff;
                }
            }
        }
    }

    .page-main {
        .header-minfin-background {
            @media (max-width: 767px) {
                min-height: 140px;
            }
        }
    }
}