.header {
    position: sticky;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 70px;
    background-color: var(--white);
    box-shadow: 0 -8px 95px rgba(0, 0, 0, 0.15);
    z-index: var(--header-z-index);
    transition: transform .3s ease;
}

@media (max-width: 768px) {
    .header.out {
        transform: translateY(-100%);
    }
}

@media (max-width: 1175px) {
    .header-dropdown > button {
        transform: translateY(2px);
    }
}
@media (max-width: 1110px) {
    .header-dropdown > button {
        transform: translateY(2px);
    }
}
@media (max-width: 1024px) {
    .header-dropdown > button {
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    .header__dropdown {
        display: none;
        overflow: hidden;
    }
    .dropdown__shell {
        position: fixed;
        width: 100%;
        top: 70px;
        height: 72px;
        background: var(--white);
        left: 0;
        /*border-top: 1px solid rgba(0, 0, 0, 0.1);*/
        /*box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);*/
        box-shadow: 0px 15px 15px -6px rgba(34, 60, 80, 0.2);
    }
}
@media (min-width: 1024px) {
    .header__dropdown-list {
        display: grid;
        list-style: none;
        position: fixed;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        top: 70px;
        background-color: var(--white);
        box-shadow: 0px 8px 16px 0px rgb(0 0 0 / 20%);
        /* border-top: 2px solid rgba(0, 0, 0, 0.1); */
        z-index: 1;
        margin: 0;
        justify-items: start;
    }
}
@media (min-width: 1024px) {
    .header__dropdown-list li {
        display: block;
        width: 100%;
    }
}

.header__wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__burger {
    display: none;
    padding: 10px;
    border: none;
    background-color: transparent;
    appearance: none;
    cursor: pointer;
}

.header__burger--active path {
    stroke: var(--orange);
}

.header__logo-image {
    width: 145px;
    height: auto;
}

.header__list-wrapper {
    margin-right: 50px;
}

.header__list {
    display: flex;
    align-items: center;
    list-style: none;
}

/*.header__list li + li {*/
/*    margin-left: 30px;*/
/*}*/
.header__list li {
    padding: 0 15px;
}

.header__link {
    padding: 24px 0;
    background-color: transparent;
    border: none;
    color: var(--black);
    opacity: 0.45;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    transition: opacity 0.3s;
    cursor: pointer;
    appearance: none;
}
@media (max-width: 1175px) {
    .header__link {
        font-size: 14px;
    }
    /*.header__list li + li {*/
    /*    margin-left: 18px;*/
    /*}*/
    .header__list li {
        padding: 0 10px;
    }
}

.header__link:hover,
.header__link--active,
.header-dropdown:hover header-dropdown > .header__link {
    opacity: 1;
    color: inherit !important;
}
.header__link:hover {
    z-index: 10000;
}

.header__link--active {
    position: relative;
    font-weight: 700;
}

/*.header__link--active::before {*/
/*    position: absolute;*/
/*    top: 68px;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 2px;*/
/*    border-radius: 2px;*/
/*    background-color: var(--black);*/
/*    content: '';*/
/*}*/

@media (max-width: 1024px) {
    .header__dropdown {
        position: fixed;
        top: 70px;
        left: 0;
        display: none;
        width: 100%;
        height: 70px;
        background-color: var(--white);
        box-shadow: 0 80px 95px rgba(0, 0, 0, 0.15);
        z-index: var(--header-z-index);
    }
}


.header__dropdown:hover,
.header__dropdown--active,
.header__link:hover + .header__dropdown,
.header-dropdown:hover .header__dropdown {
    display: block;
}
.header__link:hover .header {
    box-shadow: 0px 0px 0px rgb(0 0 0 / 0%);
}

.header__dropdown-wrapper {
    display: flex;
    justify-content: center;
    height: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    .header__dropdown-list {
        display: flex;
        align-items: center;
        list-style: none;
    }
}

.header__login {
    display: flex;
    align-items: center;
    border: none;
    background-color: transparent;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 800;
    text-decoration: none;
    color: var(--blue);
    cursor: pointer;
    appearance: none;
}

@media (max-width: 576px) {
    .header__login-text {
        display: none;
    }
}

.header__login-image {
    margin-left: 8px;
}

.header__avatar {
    display: block;
    width: 40px;
    height: 40px;
}

.header__avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1024px) {
    .header__burger {
        display: block;
    }

    .header__logo {
        margin-right: auto;
        margin-left: 16px;
    }

    .header__list-wrapper {
        position: absolute;
        top: 70px;
        left: 0;
        visibility: hidden;
        width: 100%;
        /*height: calc(100vh - 70px);*/
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.45);
    }

    .header__burger--active ~ .header__list-wrapper {
        visibility: visible;
    }

    .header__list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: 334px;
        height: 100%;
        margin: 0;
        padding: 40px 0;
        padding-left: 50px;
        background-color: var(--white);
        overflow: auto;
        overscroll-behavior: none;
    }

    .header__list li + li {
        margin-left: 0;
        margin-top: 34px;
    }

    .header__link {
        padding: 0;
        opacity: 0.7;
        font-size: 16px;
    }
    .header__link--active {
        opacity: 1;
    }

    .header__list li {
        padding-left: 0;
        padding-right: 0;
    }

    .header__link--active::before {
        content: unset;
    }

    .header__dropdown {
        position: static;
        height: unset;
        box-shadow: none;
    }

    .header__dropdown-wrapper {
        padding: 0;
        border: none;
        width: 100%;
    }

    .header__dropdown-list {
        display: block;
        padding-left: 20px;
    }

    .header__dropdown-list li {
        margin-top: 34px;
    }
}

@media (max-width: 400px) {
    .header__logo {
        margin-left: 10px;
    }
}


@media (min-width: 1024px) and (max-width: 1110px) {
    .header__link {
        font-size: 12px;
    }
}


.header__dropdown .header__link {
    display: block;
    font-size: 14px;
    padding: 18px;
}

@media (max-width: 1024px) {
    .header__dropdown .header__link {
        padding-top: 0;
        padding-bottom: 0;
    }
}
