.header {
    z-index: 1001;
    position: relative;
}

.header--fixed {
    position: fixed;
    top: 2rem;
    right: 0;
    left: 0;
    -webkit-transition: top .3s ease;
    transition: top .3s ease
}

.header--up {
    top: 1rem
}

.header__container {
    width: 100%;
    max-width: 180rem;
    padding: 0 20px;
}

.header--up .header__inner {
    background-color: #161E22E6;
}

.header__inner {
    background-color: #161E22CC;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.2rem 1.5rem 1.2rem 2rem;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), calc(100% - 3.5rem) 100%, 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5rem), calc(100% - 3.5rem) 100%, 0 100%)
}

.header__phone {
    display: none
}

.header__logo {
    width: 30rem;
}

.header-menu__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1.7rem
}

.header-menu__link {
    font-size: 2rem;
    line-height: 100%;
    font-weight: 400;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    color: #FFFFFF;
}

.header-menu__link:hover {
    text-decoration: underline;
}

.header__contacts {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 3.2rem;
}

.header-info__item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    align-items: flex-end;
    gap: .8rem;
    color: #FFFFFF;
}

.header-info__title {
    font-size: 1.8rem;
    line-height: 100%;
    font-weight: 600;
    color: #FFFFFF;
    text-align: end;
}

.header-info__text {
    font-size: 1.8rem;
    line-height: 100%;
    color: #FFFFFF;
}

.header-info__text a {
    font-size: 1.8rem;
    line-height: 100%;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
    color: #FFFFFF;
}

.header-info__text a:hover {
    color: #00657b
}

.header__btn {
    padding: 1.5rem 5rem;
}

.header__btn span {
    font-size: 1.8rem;
}

.header__toggle {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    display: none
}

.header__toggle img {
    width: 100%;
    height: auto;
    display: block
}

.header__toggle .header__toggle-close {
    display: none
}

.header__toggle.is-open .header__toggle-open {
    display: none
}

.header__toggle.is-open .header__toggle-close {
    display: block
}

.mobile-menu {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #161E22;
    color: #fff;
    margin-top: .8rem;
    padding: 2.4rem 2rem 2rem;
    max-height: calc(100dvh - 12rem);
    overflow: auto;
    width: 85%;
    margin-left: auto;
    -webkit-clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%);
    clip-path: polygon(0 0, calc(100% - 2rem) 0, 100% 2rem, 100% 100%, 0 100%)
}

.mobile-menu.opened {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex
}

.mobile-menu__body {
    margin-bottom: 2.4rem
}

.mobile-menu__phone {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-bottom: 2rem
}

.mobile-menu__phone-content {
    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-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: .6rem;
    text-align: right
}

.mobile-menu__phone-text,
.mobile-menu__phone-link {
    font-size: 1.6rem;
    line-height: 120%;
    color: #fff
}

.mobile-menu__footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column
}

.mobile-menu__btn {
    width: 100% !important
}

.mobile-menu__list {
    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-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 1.8rem;
    width: 100%
}

.mobile-menu__link {
    display: block;
    color: #fff;
    text-align: right;
    font-size: 2rem;
    line-height: 120%;
    font-weight: 400
}

@media (max-width:1280px) {
    .header--fixed {
        top: 1rem;
    }

    .header--up {
        top: 0.5rem
    }

    .header__inner {
        gap: 1rem;
        padding: 1rem 1.2rem 1rem 1.5rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.75rem), calc(100% - 2.75rem) 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.75rem), calc(100% - 2.75rem) 100%, 0 100%)
    }

    .header__logo {
        width: 15rem;
    }

    .header-menu__list {
        gap: 1rem
    }

    .header-menu__link {
        font-size: 1rem;
    }

    .header__contacts {
        gap: 1.5rem;
    }

    .header-info {
        gap: 2.2rem;
    }

    .header-info__item {
        gap: .5rem;
    }

    .header-info__title {
        font-size: 1rem;
    }

    .header-info__text {
        font-size: 1.1rem;
    }

    .header-info__text a {
        font-size: 1.1rem;
    }

    .header__btn {
        padding: 0.7rem 2rem;
    }

    .header__btn span {
        font-size: 1.2rem;
    }
}

@media (max-width:768px) {
    .header__inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center
    }

    .header__phone {
        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;
        justify-self: start;
    }

    .header__phone img {
        width: 2rem;
        height: 2rem
    }

    .header__logo {
        justify-self: center
    }

    .header-menu {
        display: none
    }

    .header__contacts {
        display: none
    }

    .header__toggle {
        display: block;
        justify-self: end;
        width: 2.4rem
    }
}

@media (min-width:769px) {
    .mobile-menu,
    .mobile-menu.opened {
        display: none
    }
}

@media (min-width:768px) and (max-width:1280px) {
    .header__toggle {
        width: 4.4rem;
        height: 4.4rem
    }
}

@media (max-width:767px) {
    .header__inner {
        padding: 1rem 1.8rem 1rem 1.4rem;
        -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%);
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), calc(100% - 2rem) 100%, 0 100%)
    }

    .header__logo {
        width: 17em;
    }

    .header__toggle {
        width: 2rem;
        height: auto
    }

    .header__btn.btn {
        display: none;
        height: 3.6rem;
        padding: 1rem
    }

    .header__btn.btn span {
        font-size: 1.2rem
    }
}
