.social-contact-bar {
    position: fixed;
    bottom: 85px;
    right: 20px;
    display: flex;
    flex-direction: column;
    z-index: 99999;
    gap: 10px;
    /* Тёмный полупрозрачный фон */
    background-color: rgba(40, 40, 40, 0.85);
    padding: 12px 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px); /* Размытие фона (опционально) */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scb-item {
    border: 1px solid #878484;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 180px;
    height: 48px;
    border-radius: 12px;
    padding: 0 12px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scb-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

.scb-item i {
    font-size: 20px;
    min-width: 24px;
    text-align: center;
}

.service-name {
    color: #dddddd;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Цвета для конкретных сервисов */
.scb-item[data-service="whatsapp"] i {
    color: #25D366;
}

.scb-item[data-service="telegram"] i {
    color: #0088cc;
}

.scb-icon[data-service="viber"] {
    background-color: #7360f2;
}

.scb-item i,
.scb-item svg {
    font-size: 20px;
    max-width: 24px;
    text-align: center;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 25px;
    border: 1px solid #ddd;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    position: relative;
    animation: slideIn 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #333;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #1da1f2;
}

#contact-form button {
    background-color: #1da1f2;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #0d8bd2;
}

#form-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.social-contact-wrapper {
    position: fixed;
    right: 20px;
    bottom: 20px;
    cursor: pointer;
}

.main-button {
    border: 1px solid #878484;
    display: flex;
    align-items: center;
    height: 50px;
    background-color: rgba(45, 45, 45, 0.85); /* Тёмный полупрозрачный фон */
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0 18px 0 12px; /* Правый отступ больше для баланса */
    font-family: 'Segoe UI', Arial, sans-serif;
    gap: 12px; /* Расстояние между иконкой и текстом */
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(65, 65, 65, 0.92);
    border-radius: 50%;
    flex-shrink: 0; /* Запрещаем сжатие */
}

.main-button .fas.fa-comment {
    color: #1da1f2; /* Акцентный синий цвет */
    font-size: 16px;
}

.button-text {
    color: #dddddd;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* Эффекты при наведении */
.main-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(55, 55, 55, 0.9);
}

.main-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Адаптация для мобильных */
@media (max-width: 480px) {
    .main-button {
        height: 46px;
        padding: 0 14px 0 10px;
        gap: 10px;
    }
    
    .icon-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .main-button .fas.fa-comment {
        font-size: 14px;
    }
    
    .button-text {
        font-size: 14px;
    }
}


.icons-container {
    display: none;
    flex-direction: column;
    gap: 10px;
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-contact-wrapper.active .icons-container {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.main-button:hover {
    transform: scale(1.05);
}
