/* Header Styles - Contacts, Messengers and Language Switcher */
.main-header {
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Контакты и мессенджеры */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact-phone, .header-contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.header-contact-phone:hover, .header-contact-email:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.header-contact-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.header-contact-phone .header-contact-icon,
.header-contact-email .header-contact-icon {
    color: var(--color-secondary, #00b648); /* Фирменный зеленый */
}

.header-contact-phone:hover .header-contact-icon,
.header-contact-email:hover .header-contact-icon {
    transform: scale(1.2);
    color: #00a042; /* Темнее при наведении */
}

/* Стили для мессенджеров */
.header-bc-messengers {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-bc-messenger-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: white; /* Белый фон */
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Цвета мессенджеров по умолчанию */
.header-bc-messenger-link.header-bc-viber {
    color: #7360F2; /* Фиолетовый Viber */
}

.header-bc-messenger-link.header-bc-whatsapp {
    color: #25D366; /* Зеленый WhatsApp */
}

.header-bc-messenger-link.header-bc-telegram {
    color: #0088cc; /* Синий Telegram */
}

/* Стили при наведении - фирменный фон и белая иконка */
.header-bc-messenger-link:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.header-bc-messenger-link.header-bc-viber:hover {
    background: #7360F2;
    color: white;
}

.header-bc-messenger-link.header-bc-whatsapp:hover {
    background: #25D366;
    color: white;
}

.header-bc-messenger-link.header-bc-telegram:hover {
    background: #0088cc;
    color: white;
}

/* Языковой переключатель */
.header-language-switcher {
    display: flex;
    align-items: center;
}

/* WPML Language Switcher */
.wpml-language-switcher {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-item {
    padding: 6px 12px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    min-width: 40px;
    text-align: center;
}

.language-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.language-item.active {
    background: var(--color-secondary, #00b648);
    color: white;
}

/* Простой селектор языков */
.simple-language-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.simple-language-selector option {
    background: var(--color-primary, #2c3e50);
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .header-contacts {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-bc-messengers {
        justify-content: center;
    }
    
    .language-item {
        padding: 5px 10px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .wpml-language-switcher {
        gap: 5px;
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0.5rem 0;
    }
    
    .header-contact-phone, .header-contact-email {
        font-size: 13px;
    }
    
    .header-contact-icon {
        width: 20px;
        height: 20px;
    }
    
    .header-bc-messenger-link {
        width: 40px;
        height: 40px;
    }
    
    .language-item {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 30px;
    }
}