.header {
    width: 100%;
    position: absolute;
    z-index: 9;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 40px 0 30px;
}
@media (max-width: 1450px) {
    .header .container {
        max-width: 1680px;
        padding: 0 40px;
    }
}
@media (max-width: 1210px) {
    .header .container {
        padding: 0 30px;
    }
}
@media (max-width: 1000px) {
    .header .container {
        padding: 0 40px;
    }
}
@media (max-width: 470px) {
    .header .container {
        padding: 0 20px;
    }
}
@media (max-width: 1450px) {
    .header {
        padding: 36px 0 26px;
    }
}
@media (max-width: 1000px) {
    .header {
        padding: 40px 0;
    }
}
@media (max-width: 767px) {
    .header {
        padding: 33px 0;
    }
}
.header.scroll-down {
    position: fixed;
    opacity: 0;
}
.header.scroll {
    position: fixed;
    background: rgba(24, 24, 24, 0.7);
    -webkit-backdrop-filter: blur(8.75px);
    backdrop-filter: blur(8.75px);
    z-index: 9;
    opacity: 1;
    padding: 25px 0;
}
.header__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.header .logo {
    margin-right: 76px;
}
@media (max-width: 1370px) {
    .header .logo {
        margin-right: 36px;
    }
}
@media (max-width: 1370px) {
    .header .btn-white {
        padding: 5px 15px;
    }
}
@media (max-width: 1370px) {
    .header .btn-white {
        padding: 5px 15px;
    }
}
.header__content {
    width: 100%;
}
@media (max-width: 1000px) {
    .header__content {
        position: absolute;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        padding: 90px 30px 30px;
        background: rgba(24, 24, 24, 0.7);
        -webkit-backdrop-filter: blur(8.75px);
        backdrop-filter: blur(8.75px);
        height: 100vh;
        overflow-y: auto;
        width: 100%;
        top: 0;
        left: 0;
        right: 0;
        z-index: -1;
        -webkit-transform: translateX(200%);
        -ms-transform: translateX(200%);
        transform: translateX(200%);
        -webkit-transition: -webkit-transform 0.5s;
        transition: -webkit-transform 0.5s;
        transition: transform 0.5s;
        transition: transform 0.5s, -webkit-transform 0.5s;
    }
    .header__content.active {
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }
    .header__content.active .header__mobile-contacts {
        display: block;
    }
}
.header__menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 30px;
    color: #9F9F9F;
}
@media (max-width: 1000px) {
    .header__menu {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin-bottom: 30px;
    }
}
.header__menu-item.active {
    color: var(--white);
}
.header__menu-item:not(:last-child) {
    margin-right: 56px;
}
@media (max-width: 1640px) {
    .header__menu-item:not(:last-child) {
        margin-right: 40px;
    }
}
@media (max-width: 1520px) {
    .header__menu-item:not(:last-child) {
        margin-right: 30px;
    }
}
@media (max-width: 1370px) {
    .header__menu-item:not(:last-child) {
        margin-right: 22px;
    }
}
@media (max-width: 1000px) {
    .header__menu-item:not(:last-child) {
        margin-right: 0;
        text-align: center;
        width: 100%;
    }
}
@media (max-width: 1000px) {
    .header__menu-link {
        padding: 16px 0;
        font-size: 18px;
        line-height: 1.23;
        letter-spacing: 4.23px;
        text-transform: uppercase;
    }
}
.header__contacts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}
.header__contacts-phone {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-right: 32px;
}
@media (max-width: 1210px) {
    .header__contacts-phone {
        margin-right: 24px;
    }
}
@media (max-width: 1170px) {
    .header__contacts-phone {
        margin-right: 0;
    }
}
@media (max-width: 1000px) {
    .header__contacts-phone {
        margin-right: 36px;
    }
}
@media (max-width: 767px) {
    .header__contacts-phone {
        display: none;
    }
}
@media (max-width: 470px), (hover: hover) {
    .header__contacts-phone:hover svg {
        fill: var(--white);
    }
}
.header__contacts-phone svg {
    width: 22px;
    height: 22px;
    fill: #E0E0E0;
    -webkit-transition: fill 0.5s;
    transition: fill 0.5s;
}
@media (max-width: 1170px) {
    .header__contacts-btn {
        display: none;
    }
}
.header__mobile-contacts {
    display: none;
    -webkit-transform: translateX(200%);
    -ms-transform: translateX(200%);
    transform: translateX(200%);
    -webkit-transition: -webkit-transform 0.5s;
    transition: -webkit-transform 0.5s;
    transition: transform 0.5s;
    transition: transform 0.5s, -webkit-transform 0.5s;
}
@media (max-width: 1000px) {
    .header__mobile-contacts {
        display: block;
    }
    .header__mobile-contacts.active {
        -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
        transform: translateX(0);
    }
}
.header__social {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 20px;
}
.header__social-item {
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    height: 22px;
}
.header__social-item:not(:last-child) {
    margin-right: 50px;
}
@media (max-width: 470px), (hover: hover) {
    .header__social-item:hover {
        opacity: 0.7;
    }
}
.header__social-link svg {
    width: 22px;
    height: 22px;
    fill: var(--white);
}

.headpopup {
    top:0;
    width: 100%;
    left: 0;
    text-align: center;
    background: black;
    color: white;
    padding:10px 20px;
    z-index:999;
    position:relative;
}

.headpopup .close {
    top: 50%;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    transform: translateY(-50%);
    right: 10px;
    width: 25px;
    height: 25px;
    position: absolute;
    padding: 0;
    border: 2px solid #ccc;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    border-radius: 15px;
    background-color: rgba(61, 61, 61, 0.8);
    -webkit-box-shadow: 0px 0px 10px #000;
    -moz-box-shadow: 0px 0px 10px #000;
    box-shadow: 0px 0px 10px #000;
    text-align: center;
    text-decoration: none;
    /* font: 13px/20px 'Tahoma', Arial, sans-serif;*/
    font-weight: bold;
    -webkit-transition: all ease .8s;
    -moz-transition: all ease .8s;
    -ms-transition: all ease .8s;
    -o-transition: all ease .8s;
    transition: all ease .8s;
    color:white;
    font-weight: normal;
}

.headpopup .close:before {
    color: rgba(255, 255, 255, 0.9);
    content: "X";
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    font-size: 12px;
}
.headpopup .close:hover {
    background-color: rgba(252, 20, 0, 0.8);
    -webkit-transform: translateY(-50%) rotate(360deg);
    -moz-transform: translateY(-50%) rotate(360deg);
    -ms-transform: translateY(-50%) rotate(360deg);
    -o-transform: translateY(-50%) rotate(360deg);
    transform: translateY(-50%) rotate(360deg);
}

.headpopup.hidden{
    display:none;
}

