/* Menu Overlay Styles */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #4a8cf0;
    z-index: 100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: flex;
    opacity: 1;
}

/* Шапка в меню */
.menu-header {
    background-color: transparent;
    padding: 15px 0;
    position: relative;
    z-index: 1001;
}

.menu-header .logo-text {
    color: #ffffff;
}

.menu-header .icon-link img {
    filter: brightness(0) invert(1);
}

.menu-close-btn {
    background-color: #ffffff;
    color: #383d4c;
}

.menu-close-btn .menu-icon .line {
    background-color: #383d4c;
}

.menu-content {
    display: flex;
    position: relative;
    margin-top: 200px;
    margin-bottom: 90px;
    margin-left: 300px;
    margin-right: 75px;
    width: 100%;
    justify-content: space-between;
}


.menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: unset;
    border: unset;
    cursor: pointer;
}

.menu-left {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 372px;
    position: relative;
}

.menu-divider {
    position: absolute;
    left: 323px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 786px;
    background-color: #ffffff;
    border-radius: 10px;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    height: 100%;
    padding-left: 40px;
    position: relative;
}

.menu-nav::before {
    content: "";
    width: 9px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #fff;
    border-radius: 5px;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.menu-item a {
    text-decoration: none;
}

.menu-link {
    color: #ffffff;
    text-decoration: none;

    font-weight: 500;
    font-size: 80px;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.menu-link:hover {
    opacity: 0.8;
}

.menu-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.menu-contacts {
    text-align: right;
}

.contact-item {
    margin-bottom: 8px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.whatsapp-link,
.email-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    color: #ffffff;
    font-weight: 500;
    font-size: 48px;
    line-height: 56px;
}

.email-link {
    font-size: 28px;
}

.whatsapp-link:hover,
.email-link:hover {
    opacity: 0.8;
}

.menu-btn {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 13px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;

    font-weight: 600;
    font-size: 12px;
    color: #021f23;
    transition: background-color 0.3s ease;
    box-shadow: 0px 18.0096px 16.992px rgba(13, 78, 20, 0.07);
    border: none;
}

.menu-btn:hover {
    background-color: #f8f9fa;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-icon .line {
    width: 14px;
    height: 1px;
    background-color: #021f23;
    display: block;
    transition: transform 0.3s ease;
}


/* Анимация превращения в крестик */
.menu-icon.close .line:first-child {
    transform: rotate(45deg) translate(1.5px, 1.5px);
}

.menu-icon.close .line:last-child {
    transform: rotate(-45deg) translate(1.5px, -1.5px);
}

/* Анимация для основных кнопок меню */
.menu-btn.active .menu-icon .line:first-child {
    transform: rotate(45deg) translate(1.5px, 1.5px);
}

.menu-btn.active .menu-icon .line:last-child {
    transform: rotate(-45deg) translate(1.5px, -1.5px);
}

@media screen and (max-width: 768px) {
    .menu-nav {
        padding-left: 0;
        justify-content: center;
    }

    .menu-content {
        margin: 0 auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .menu-contacts {
        text-align: center;
        margin-top: 40px;
    }

    .whatsapp-link,
    .email-link {
        font-size: 18px;
        line-height: 1.2;
    }

    .menu-list {
        align-items: center;
    }

    .menu-nav {
        height: auto;
    }

    .menu-nav::before {
        display: none;
    }

    .menu-link {
        font-size: 40px;
        line-height: 1.2;
    }

    .menu-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
}