:root {
    --first-color: #cabbe9;
    --two-color: #feffe9;
    --text: black;
}

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

.logo {
    justify-self: left;
}

.link-nav {
    justify-self: right;
}
.desktop-menu {
    display: grid;
    grid-template-columns: 1fr 6fr;
    padding: 20px 50px;
    align-items: center;
}

.desktop-menu a {
    margin-right: 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:#604a4a;
    width: 90%;
    height: 4px;
    transition: 0.4s;
}

.mobile-menu__icon::after, .mobile-menu__icon::before {
    content: "";
    display: block;
    position: absolute;
    background: #604a4a;
    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: #feffe9;
}

.mobile-menu__list {
    transition: 0.5s;
    transition-delay: 0.5s;
    list-style: none;
    padding-left: 0;
    margin-top: -50px;
}

.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: 1230px) {
    .hero-info {

        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 880px) {
    .mobile-menu {
        display: flex;
        background-color: #feffe9
    }

    .desktop-menu {
        display: none;
    }
}
