/* main vars colors */
:root {
    --nav-bg: #183029;
    --body-bg: #ebeff2;
    --main-bg: #43b02a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

.main_body::-webkit-scrollbar-thumb {
    background-color: #43b02a;
    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background-color: #f5f5f5;
    border-radius: 10px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--body-bg);
}

.btn-call {
    background-color: var(--main-bg);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: phone 2s infinite;
}

.btn-request {
    background-color: var(--main-bg);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    position: fixed;
    bottom: 120px;
    left: 25px;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    animation: phone 2s infinite;
}

.btn-call .bage {
    position: absolute;
    top: -15px;
    right: -10px;
    background-color: #3f9c35;
    color: white;
    border-radius: 12px;
    padding: 5px;
    font-size: 12px;
}

.btn-call.cart {
    left: unset;
    right: 25px;
    animation: unset;
}

.btn-call:hover {
    background-color: #3f9c35;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    animation: none;
}

.btn-call-ico.cart {
    animation: unset;
}

.btn-call-ico {
    font-size: 20px;
    height: 50px;
    width: 50px;
    animation: ring 1s infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-call-ico img {
    height: 50px;
    width: 50px;
}



.btn-call-ico:hover {
    animation: none;
}

@keyframes phone {
    0% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }
}

@keyframes ring {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    50% {
        transform: rotate(-15deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.back-bluer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s;
}

.back-bluer.active {
    opacity: 1;
    visibility: visible;
    transition: all 0.5s;
}


nav {
    background-color: var(--nav-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: 0.3s;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: 0.3s;
}

nav img {
    height: 30px;
    width: 30px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 5px 20px;
    border-bottom: 1px solid #3f9c35;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    border: none;
}

nav button {
    color: white;
    text-decoration: none;
    padding: 10px;
    transition: 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-radius: 5px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    width: 100%;
}

nav button:hover {
    background-color: #3f9c35;
    border-radius: 20px;
}

nav a:hover {
    background-color: #3f9c35;
    border-radius: 20px;
}

.socials {
    display: flex;
    flex-direction: row;
}

.middle-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.middle-nav a {
    font-size: 30px;
    font-weight: bold;
}


.hidden-nav {
    transform: translateY(-66%);
}

@keyframes hidden-nav {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.main-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--main-bg);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    transition: 0.3s;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.main-nav li {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.drop-down-button {
    text-decoration: none;
    color: black;
    background-color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}


.drop-down-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0px 20px 20px 20px;
    min-width: 200px;
    padding: 10px 0;
    z-index: 100;
}

.drop-down-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    flex-direction: row;
    padding: 10px 15px;
    color: black;
    text-decoration: none;
    white-space: nowrap;
    margin: 5px;
    transition: all 0.3s ease;
}

.drop-down-content a:hover {
    background: #f5f5f5;
    border-radius: 20px;
    margin: 10px;
    transition: all 0.3s ease;
}

/* Реализация выпадающего меню без JS */
.main-nav li:hover .drop-down-content {
    display: block;
}

.main-nav li:hover .drop-down-button {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
}

@media screen and (max-width: 768px) {
    .pc-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }

    .nav-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: var(--nav-bg);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        transition: 0.3s;
        padding: 10px 10px 10px 10px;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .nav-bottom-button {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px;
        width: 45%;
        border-radius: 20px;
        background-color: var(--main-bg);
        color: black;
        font-size: 20px;
        transition: 0.3s;
        position: relative;
        cursor: pointer;
        transition: all 0.5s;
    }

    .nav-bottom-button.mini {
        width: 35%;
    }

    .nav-bottom-button.burger {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .nav-bottom-button.burger span {
        width: 30px;
        height: 3px;
        background-color: white;
        display: block;
        border-radius: 10px;
        transition: all 0.3s;
    }

    .nav-bottom-button.inactive {
        display: none;
    }

    .menu-body.active {
        bottom: 0;
        transition: all 0.5s;
    }

    .menu-body {
        position: fixed;
        bottom: -300%;
        left: 0;
        width: 100%;
        background-color: var(--main-bg);
        z-index: 1001;
        padding: 20px;
        transition: all 0.5s;
        border-top-left-radius: 25px;
        border-top-right-radius: 25px;
    }

    .close {
        padding: 10px;
        color: black;
        font-size: 20px;
        cursor: pointer;
        background-color: white;
        border-radius: 20px;
        display: flex;
        justify-content: center;
        margin-top: 5px;
    }

    .menu-body ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0;
        margin: 0;
    }

    .menu-body li {
        position: relative;
        transition: all 0.3s ease;
        border: 1px solid white;
        border-radius: 20px;
        width: 100%;
    }

    /* .menu-body li a {
        justify-content: center;
    } */

    .menu-body hr {
        width: 100%;
        border: 1px solid white;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .menu-item {
        padding: 10px;
        color: white;
        font-size: 20px;
        text-align: center;
        border-radius: 20px;
        transition: all 0.3s ease;
        border: 1px solid white;
        margin-bottom: 5px;
    }

    .menu-item img {
        height: 30px;
        width: 30px;
        background-color: white;
        border-radius: 50%;
        padding: 5px;
        margin-right: 10px;
    }

    .btn-call {
        bottom: 80px;
        left: 15px;
    }

    .btn-request {
        bottom: 160px;
        left: 15px;
    }

    .btn-call.cart {
        bottom: 80px;
        right: 15px;
    }

    .btn-call-ico {
        height: 35px;
        width: 35px;
    }

    .btn-call-ico img {
        height: 35px;
        width: 35px;
    }

    .mobile-nav-top {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px 10px;
    }

    .mobile-nav-top a {
        font-size: 20px;
        padding: 0px;
    }
}