﻿/* ����� ���� */
/*.contact-menu {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999;
}*/
/*.contact-menu {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;*/ /* ���� ���� ������� �� ������ */
/*align-items: center;
}*/

/* ���� ������� */
/*.main-button {
    background-color: #1B5D1F;
    width: 60px;
    height: 60px;
    font-size: 26px;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease;
}*/

/* ���� ����� */
/*.main-button .wave {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(147, 118, 52, 0.4);*/ /* ��� ����� ���� �� ������ */
/*border-radius: 50%;
        animation: wavePulse 2s infinite ease-out;
        top: 0;
        left: 0;
        z-index: -1;
        transform: scale(1);
        opacity: 0.6;
    }


@keyframes wavePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}*/

/* ����� ������� ��� ����� */
/*.social-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateY(10px);
}*/

/* ��� ������� ��� ����� */
/*.contact-menu input:checked ~ .social-buttons {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}*/

/* ����� ������ ��� ��� ������� */
/*.contact-menu input:checked + .main-button .wave {
    display: none;
}*/

/* ����� ������� */
/*.social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 50px;
    margin: 5px 0;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s;
}

    .social:hover {
        transform: scale(1.1);
    }*/

/* ����� ������� */
/*.whatsapp {
    background: #25D366;
}

.instagram {
    background: #E1306C;
}

.facebook {
    background: #3b5998;
}

.vk {
    background: #4c75a3;
}

.viber {
    background: #665CAC;
}

.message {
    background: #d8c69c;
    color: #fff;
}

.info {
    background: #d8c69c;
    color: #fff;
}*/

/* ������� */
/*.social i {
    line-height: inherit;
}*/

/* �������� ���� ���� ������� */
/*.icon-message,
.icon-close {
    position: absolute;
    font-size: 24px;
    transition: opacity 0.3s ease;
}

.icon-close {
    opacity: 0;
}

.contact-menu input:checked + .main-button .icon-message {
    opacity: 0;
}

.contact-menu input:checked + .main-button .icon-close {
    opacity: 1;
}*/
/* ������� ������� �������: ����� ������ �� ������ */
/*.social-buttons .social {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}*/

/* ��� ����� ������� */
/*.contact-menu input:checked ~ .social-buttons .social {
    transform: translateY(0);
    opacity: 1;
}*/

/* ���� ���� ��� �� */
/*.social-buttons .social:nth-child(1) {
    transition-delay: 0.05s;
}

.social-buttons .social:nth-child(2) {
    transition-delay: 0.10s;
}

.social-buttons .social:nth-child(3) {
    transition-delay: 0.15s;
}

.social-buttons .social:nth-child(4) {
    transition-delay: 0.20s;
}

.social-buttons .social:nth-child(5) {
    transition-delay: 0.25s;
}

.social-buttons .social:nth-child(6) {
    transition-delay: 0.30s;
}

.social-buttons .social:nth-child(7) {
    transition-delay: 0.35s;
}*/



/* ����� ���� */
.contact-menu {
    position: fixed !important;
    bottom: 83px !important;
    right: 25px !important;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse; /* ���� ���� ������� �� ������ */
    align-items: center;
}

/* ���� ������� */
.main-button {
    background-color: #1B5D1F;
    width: 60px;
    height: 60px;
    font-size: 26px;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease;
}

    /* ���� ����� */
    .main-button .wave {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(147, 118, 52, 0.4);
        border-radius: 50%;
        animation: wavePulse 2s infinite ease-out;
        top: 0;
        left: 0;
        z-index: -1;
        transform: scale(1);
        opacity: 0.6;
    }

@keyframes wavePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    70% {
        transform: scale(2.5);
        opacity: 0;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* ����� ������� ��� ����� */
.social-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.contact-menu input:checked ~ .social-buttons {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.contact-menu input:checked + .main-button .wave {
    display: none;
}

.social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 50px;
    margin: 5px 0;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s;
}

    .social:hover {
        transform: scale(1.1);
    }

.whatsapp {
    background: #25D366;
}

.instagram {
    background: #E1306C;
}

.facebook {
    background: #3b5998;
}

.vk {
    background: #4c75a3;
}

.viber {
    background: #665CAC;
}

.message {
    background: #d8c69c;
    color: #fff;
}

.info {
    background: #d8c69c;
    color: #fff;
}

.social i {
    line-height: inherit;
}

.icon-message,
.icon-close {
    position: absolute;
    font-size: 24px;
    transition: opacity 0.3s ease;
}

.icon-close {
    opacity: 0;
}

.contact-menu input:checked + .main-button .icon-message {
    opacity: 0;
}

.contact-menu input:checked + .main-button .icon-close {
    opacity: 1;
}

/* ������� ������� �������: ����� ������ �� ������ */
.social-buttons .social {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.contact-menu input:checked ~ .social-buttons .social {
    transform: translateY(0);
    opacity: 1;
}

.social-buttons .social:nth-child(1) {
    transition-delay: 0.05s;
}

.social-buttons .social:nth-child(2) {
    transition-delay: 0.10s;
}

.social-buttons .social:nth-child(3) {
    transition-delay: 0.15s;
}

.social-buttons .social:nth-child(4) {
    transition-delay: 0.20s;
}

.social-buttons .social:nth-child(5) {
    transition-delay: 0.25s;
}

.social-buttons .social:nth-child(6) {
    transition-delay: 0.30s;
}

.social-buttons .social:nth-child(7) {
    transition-delay: 0.35s;
}


@media (max-width: 768px) {
    .contact-menu {
        display: flex !important;
        bottom: 83px !important;
        right: 25px !important;
    }

    .main-button {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .social {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
