/* ------------------- ВИДЖЕТ СВЯЗИ НА САЙТЕ ------------------- */

/* Стили виджета связи */
#contactWidget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Верхняя панель с кнопками */
#contactWidget .widget-panel {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 15px;
    background: white;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

#contactWidget .widget-panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Стили для кнопок на панели */
#contactWidget .widget-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    justify-content: flex-start;
    gap: 5px;
}

#contactWidget .widget-btn span {
    flex-grow: 1;
    text-align: left;
}

#contactWidget .whatsapp-btn:hover {
    background: linear-gradient(135deg, #25D366, #25D366);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#contactWidget .telegram-btn:hover {
    background: linear-gradient(135deg, #0088cc, #0088cc);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#contactWidget .max-btn:hover {
    background: linear-gradient(135deg, #9745dc, #9745dc);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

#contactWidget .whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #006d29);
}

#contactWidget .telegram-btn {
    background: linear-gradient(135deg, #0088cc, #00496d);
}

#contactWidget .max-btn {
    background: linear-gradient(135deg, #4db8f6, #9745dc);
}

#contactWidget .max-btn svg {
    border-radius: 50%;
    overflow: hidden;
}

/* Стили для SVG иконок в кнопках */
#contactWidget .widget-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Основная кнопка виджета */
#contactWidget .widget-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3a56e0, #00ff5f);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(74, 111, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
}

#contactWidget .widget-main-btn:hover {
    background: linear-gradient(135deg, #3A56E0, #2A46C0);
    box-shadow: 0 8px 25px rgba(74, 111, 255, 0.5);
    transform: scale(1.05);
}

/* Иконки внутри основной кнопки */
#contactWidget .widget-main-btn svg {
    position: absolute;
    width: 100%;
    height: 100%;
	color: #fff;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#contactWidget .widget-main-btn svg.phone-icon {
    opacity: 1;
    transform: rotate(0deg);
}

#contactWidget .widget-main-btn svg.close-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Состояние, когда меню открыто */
#contactWidget .widget-main-btn.active {
    background: linear-gradient(135deg, #FF4757, #E84142);
}

#contactWidget .widget-main-btn.active svg.phone-icon {
    opacity: 0;
    transform: rotate(90deg);
}

#contactWidget .widget-main-btn.active svg.close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Анимация появления панели */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    #contactWidget .contact-widget {
        bottom: 15px;
        right: 15px;
    }
    
    #contactWidget .widget-btn {
        min-width: 160px;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    #contactWidget .widget-main-btn {
        width: 56px;
        height: 56px;
    }
    
    #contactWidget .widget-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* ------------------- ИКОНКИ СОЦСЕТЕЙ В ШАПКЕ ------------------- */
ul.nav.navbar-nav{
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
.navbar-nav li.icons, .navbar-header li.icons {
	position: relative;
    display: inline-flex;
	gap: 5px;
	justify-content: flex-start;
	align-items: center;
}
.navbar-header li.icons {
	margin: 8px 20px;
	height: 34px;
}
@media (min-width: 768px) {
    .navbar-header li.icons {
        display: none;
    }
}
.navbar-nav li.icons a, .navbar-header li.icons a {
	width: 28px;
	height: 28px;
	box-sizing: border-box;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
    padding: 5px;
    line-height: normal;
	text-shadow: none;
}
.navbar-nav li.icons a:hover, .navbar-header li.icons a:hover {
	opacity: 0.8;
}
.navbar-nav li.icons a.max-icon, .navbar-header li.icons a.max-icon {
	padding: 0px;
}
.navbar-nav li.icons a svg, .navbar-header li.icons a svg {
	width: 100%;
	height: 100%;
	color: #fff;
}
.navbar-nav li.icons a.whatsapp-icon, .navbar-header li.icons a.whatsapp-icon {
	background: #25d366;
}
.navbar-nav li.icons a.telegram-icon, .navbar-header li.icons a.telegram-icon {
	background: #0088cc;
}