.phone {
    display: flex;
    align-items: center;
}
.phone:hover {
    color: var(--accent-color);
}

.phone-btn-mobile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: none;
    border: 1px solid var(--border-color);
    padding: 7px;
}

.phone-btn-mobile svg {
    width: 100%;
    height: 100%;
}

.phone__mobile {
    display: none;
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    align-items: flex-end;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
}

@media (max-width: 430px) {
    .phone__mobile {
        padding-bottom: 60px;
    }
}

.phone__mobile.phone__mobile_active {
    display: flex;
}

.phone__mobile-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0 24px;
}

.phone__mobile-close {
    background: var(--main-background-color);
    border: none;
    border-radius: 8px;
    width: 100%;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.phone__mobile-content {
    border-radius: 8px;
    background: var(--main-background-color);
    margin: 15px 0;
    padding: 10px 12px;
}

.phone__text {
    color: var(--main-text-color);
    font-weight: 400;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
    margin: 0 0.6rem 0 0;
    font-size: 14px;
}

.phone_container {
    display: flex;
    height: 100%;
    align-items: center;
    padding: 20px;
    margin-right: 20px;
    flex-direction: column;
}

.phone__num_dropdown svg {
    display: none;
}

.phone__num {
    margin: 0 0 0 6px;
    color: var(--main-text-color);
    transition: all 0.4s ease-in-out;
    font-size: 18px;
    font-weight: 500;
}

.phone_container:hover .dropdown__container.phone__dropdown {
    border-top: 1px solid var(--border-color);
}

.dropdown__container.phone__dropdown {
    width: auto;
    left: auto;
    right: 0;
    border-radius: 0;
    margin-top: 0;
    width: 100%;
    box-shadow: 0px 12px 12px rgba(0,0,0,0.12);
}

.phone__dropdown .phone__dropdown-item {
    font-size: 18px;
    font-weight: 500;
}

.phone__dropdown_hidden {
    display: none;
}

.phone__dropdown-item {
    display: block;
    padding: 5px 20px;
    text-decoration: none;
    transition: color 0.25s;
    color: var(--main-text-color);
    margin-bottom: 5px;
    font-size: 14px;
}

.phone__dropdown-item:hover {
    color: var(--accent-color);
}

.phone__item {
    display: flex;
    align-items: center;
    transition: all 0.4s ease-in-out;
}

.phone__item:hover {
    color: var(--accent-color);
}

.wrapper-back-ring {
    margin: 2px;
}

.wrapper-back-ring button {
    transition: all 0.4s ease-in-out;
}
.wrapper-back-ring button:hover {
    color: var(--accent-color)
}

@media (max-width: 1200px) {
    .phone__dropdown_hidden {
        display: block;
    }
}

@media (max-width: 767px) {
    .phone__text {
        flex-direction: column;
    }
    .phone {
        margin: 10px 0;
    }
    .phone-btn-mobile {
        display: block;
        margin-right: 15px;
    }
    .phone_container {
        width: 0px;
        height: 0px;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }
    .phone__num {
        display: none;
    }
    .wrapper-back-ring {
        display: none;
    }
    .phone__mobile-content .wrapper-back-ring {
        display: block;
    }
}

@media (min-width: 768px) {
    .phone__mobile {
        display: none !important;
    }
}