/* === Кастомная шапка (mod_custom в позиции header) === */
.custom-header-module {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
    flex-wrap: wrap;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header-logo img {
    display: block;
    height: auto;
    max-width: 100%;
}
.header-text {
    display: flex;
    flex-direction: column;
}
.header-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}
.header-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
    margin: 0.25rem 0 0;
}
.header-contacts {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === Кнопка Мэй AI (рабочая версия) === */
.btn-mei {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.3rem;
    border-radius: 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.btn-mei:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}
.btn-mei i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .custom-header-module { flex-direction: column; text-align: center; }
    .header-left { flex-direction: column; gap: 0.75rem; }
    .header-contacts { width: 100%; justify-content: center; }
}