.header {
    background-color: #475669;
    position: relative;
    padding: 35px 0;
}

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

.header__logo {
    background-image: url(/i/travelinform/logo.png);
    display: block;
    width: 260px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
}

/*Анимация при наведении на аватарку юзера*/

/* весь контейнер поддерживает перспективу */
.header__user {
    cursor: pointer;
    perspective: 1000;
}

/* переверните сторону при проведении мышью  */
.header__user:hover .header__user-in {
    transform: rotateY(180deg);
}

.header__user,
.header__user-in .bth__ava-40,
.header__user-in .header__auth {
    width: 50px;
    height: 50px;
}

/* здесь находится скорость перевертывания */
.header__user-in {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

/* скройте обратную сторону во время переворота */
.header__user-in .bth__ava-40,
.header__user-in .header__auth {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

/* лицевая сторона размещена над обратной */
.header__user-in .bth__ava-40 {
    z-index: 2;
    width: 50px;
    border: 2px solid white;
    background-color: #DDDDDD;
}

/* обратная, изначально скрытая сторона */
.header__user-in .header__auth {
    transform: rotateY(180deg);
    color: white;
    background-color: #F5B553;
    font-size: 28px;
    padding-top: 6px;
    border-radius: 50px;
    text-align: center;
    z-index: 10;
}

.header__anonim {
    color: white;
    background-color: #F5B553;
    font-size: 25px;
    padding-top: 4px;
    border-radius: 50px;
    text-align: center;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: block;
}

.header__anonim:hover {
    background-color: #e27200;
    color: white;
}

@media screen and (max-width: 750px) {
    .header {
        padding: 15px 0;
    }

    .header__logo {
        width: 170px;
        height: 40px;
    }

    .header__user, .header__user-in .bth__ava-40, .header__user-in .header__auth {
        width: 45px;
        height: 45px;
    }

    .header__user-in .bth__ava-40 {
        border-width: 1px;
    }
}