
.pd140-50 {
    padding: 140px 50px;
}
.pd70-30 {
    padding: 70px 30px;
}

.logo {
    justify-self: left;
}

.link-nav {
    justify-self: right;
}

.link-nav>a{
    text-decoration: none;
}

.desktop-menu {
    display: grid;
    grid-template-columns: 1fr 6fr;
    padding: 10px 50px;
    align-items: center;
}

.desktop-menu a {
    margin-left: 15px;
    position: relative;
    z-index: 1;
    font-size: 18px;
}

.desktop-menu .link-nav a::after {
    display: block;
    position: absolute;
    left: 0; /*изменить на right:0;, чтобы изменить направление подчёркивания */
    width: 0; /*задаём длинну линии до наведения курсора*/
    height: 8px; /*задаём ширину линии*/
    content: "";
    transition: width 0.3s ease-out; /*задаём время анимации*/
    bottom: 4px;
    z-index: -1;
}

.desktop-menu .link-nav a:hover:after, .desktop-menu .link-nav a:focus:after {
    width: 60%;
}

.mobile-menu {
    position: fixed;
    display: none;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 9999999;
}

.mobile-menu__btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 30px;
    cursor: pointer;
    transition: 0.4s;
}

.mobile-menu__icon {
    display: block;
    position: relative;
    background:#bb1313;
    width: 90%;
    height: 4px;
    transition: 0.4s;
}

.mobile-menu__icon::after, .mobile-menu__icon::before {
    content: "";
    display: block;
    position: absolute;
    background: #bb1313;
    width: 100%;
    height: 4px;
    transition: 0.4s;
}

.mobile-menu__icon::after {
    top: 8px;
}

.mobile-menu__icon::before {
    top: -8px;
}

.mobile-menu__container {
    position: fixed;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 999;
    height: 0;
    opacity: 1;
    transition: 0.5s;
    transition-delay: 0.2s;
    overflow: hidden;
    background-color: #333;
    flex-flow: column
}

.mobile-menu__list {
    transition: 0.5s;
    transition-delay: 0.5s;
    list-style: none;
    padding-left: 0;
    margin-top: 0px;
    border-bottom: 1px solid #bb13138e;
}
.mobile-menu__list-first {
}
.mobile-menu__item {
    font-size: 26px;
    padding-bottom: 15px;
}

.mobile-menu__link {
    text-decoration: none;
    color: #604a4a;
}

.mobile-menu__checkbox {
    display: none;
}
/**/

.mobile-menu__checkbox:checked ~ .mobile-menu__nav {
    opacity: 1;
    transition-delay: 0s;
}

.mobile-menu__checkbox:checked ~ .mobile-menu__container {
    height: 100%;
    transition-delay: 0s;
}

.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon {
    background: transparent;
}

.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::before, .mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::after {
    top: 0;
}

.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::after {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.mobile-menu__checkbox:checked ~ .mobile-menu__btn .mobile-menu__icon::before {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}


@media (max-width: 940px) {
    .mobile-menu {
        display: flex;
        background-color: #333
    }

    .desktop-menu {
        display: none;
    }
}